summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/dist.c
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2003-01-06 17:15:35 +0000
committerobrien <obrien@FreeBSD.org>2003-01-06 17:15:35 +0000
commit9043c08e47190c2b820657ee36605ccf97d8dba0 (patch)
tree05de747c9138917554dea40f066784fbac5a4572 /usr.sbin/sysinstall/dist.c
parent3d3d36532955c7fa32cf458ed7ae227f589d7f25 (diff)
downloadFreeBSD-src-9043c08e47190c2b820657ee36605ccf97d8dba0.zip
FreeBSD-src-9043c08e47190c2b820657ee36605ccf97d8dba0.tar.gz
Compare pointers to NULL rather than make it look like they are ints.
Diffstat (limited to 'usr.sbin/sysinstall/dist.c')
-rw-r--r--usr.sbin/sysinstall/dist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/sysinstall/dist.c b/usr.sbin/sysinstall/dist.c
index ed761b1..d9b6ef7 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();
OpenPOWER on IntegriCloud