]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
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 219d95ad7ac1d9a2a4a27d0fe60b37205e305297..c82c2f6c26b2aeb59dc434e671c850116e739894 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);
                }