Compare character to zero, not to NULL
authorAlan T. DeKok <aland@freeradius.org>
Mon, 10 Dec 2012 22:02:32 +0000 (17:02 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 10 Dec 2012 22:02:51 +0000 (17:02 -0500)
src/main/conffile.c

index 219d95a..c82c2f6 100644 (file)
@@ -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);
                }