From: Alan T. DeKok Date: Mon, 10 Dec 2012 22:02:32 +0000 (-0500) Subject: Compare character to zero, not to NULL X-Git-Tag: release_3_0_0_beta1~1390 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5401d66df78f1da9a4f6ae8e96a3eb167c41346f;p=thirdparty%2Ffreeradius-server.git Compare character to zero, not to NULL --- diff --git a/src/main/conffile.c b/src/main/conffile.c index 219d95ad7ac..c82c2f6c26b 100644 --- a/src/main/conffile.c +++ b/src/main/conffile.c @@ -623,7 +623,7 @@ CONF_ITEM *cf_reference_item(const CONF_SECTION *parentcs, /* * Just '.' means the current section */ - if (*p == NULL) { + if (*p == '\0') { return cf_sectiontoitem(cs); }