Fix unused chdir() result value warning
This commit is contained in:
parent
66830c8786
commit
ffd4d9e98f
@ -1037,7 +1037,8 @@ static void parseoptions(int argc,char **argv,char *oname,char *ename,char *pnam
|
|||||||
if (ptr[1]==':')
|
if (ptr[1]==':')
|
||||||
dos_setdrive(toupper(*ptr)-'A'+1); /* set active drive */
|
dos_setdrive(toupper(*ptr)-'A'+1); /* set active drive */
|
||||||
#endif
|
#endif
|
||||||
chdir(ptr);
|
if (chdir(ptr)==-1)
|
||||||
|
; /* silently ignore chdir() errors */
|
||||||
break;
|
break;
|
||||||
case 'd':
|
case 'd':
|
||||||
switch (*option_value(ptr)) {
|
switch (*option_value(ptr)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user