cpp: fd <= 0 vs. fd < 0
This commit is contained in:
parent
f3609bada2
commit
dd318f09cd
1 changed files with 1 additions and 1 deletions
|
@ -168,7 +168,7 @@ setup(int argc, char **argv)
|
||||||
dp[len] = '\0';
|
dp[len] = '\0';
|
||||||
}
|
}
|
||||||
fp = (char*)newstring((uchar*)argv[0], strlen(argv[0]), 0);
|
fp = (char*)newstring((uchar*)argv[0], strlen(argv[0]), 0);
|
||||||
if ((fd = open(fp, 0)) <= 0)
|
if ((fd = open(fp, 0)) < 0)
|
||||||
error(FATAL, "Can't open input file %s", fp);
|
error(FATAL, "Can't open input file %s", fp);
|
||||||
}
|
}
|
||||||
if (argc > 1) {
|
if (argc > 1) {
|
||||||
|
|
Loading…
Reference in a new issue