(getpty): Declare p.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14967 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -408,6 +408,7 @@ int getpty(int *ptynum)
|
|||||||
"/dev/ptym/clone", 0 };
|
"/dev/ptym/clone", 0 };
|
||||||
|
|
||||||
char **q;
|
char **q;
|
||||||
|
int p;
|
||||||
for(q=clone; *q; q++){
|
for(q=clone; *q; q++){
|
||||||
p=open(*q, O_RDWR);
|
p=open(*q, O_RDWR);
|
||||||
if(p >= 0){
|
if(p >= 0){
|
||||||
|
Reference in New Issue
Block a user