diff --git a/usr.sbin/sysinstall/dist.c b/usr.sbin/sysinstall/dist.c index ed761b1f0dc2..d9b6ef746511 100644 --- a/usr.sbin/sysinstall/dist.c +++ b/usr.sbin/sysinstall/dist.c @@ -650,7 +650,7 @@ distExtract(char *parent, Distribution *me) goto done; } } - else if (fp > 0) { + else if (fp != NULL) { if (isDebug()) msgDebug("Parsing attributes file for distribution %s\n", dist); @@ -695,7 +695,7 @@ distExtract(char *parent, Distribution *me) else goto getsingle; } - else if (fp > 0) { + else if (fp != NULL) { char *dir = root_bias(me[i].my_dir); dialog_clear_norefresh();