cpp: fd <= 0 vs. fd < 0

This commit is contained in:
cinap_lenrek 2012-04-20 16:42:12 +02:00
parent f3609bada2
commit dd318f09cd

View file

@ -168,7 +168,7 @@ setup(int argc, char **argv)
dp[len] = '\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);
}
if (argc > 1) {