]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
fix typo.
authorAlan T. DeKok <aland@freeradius.org>
Sat, 18 May 2024 20:50:17 +0000 (16:50 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Sat, 18 May 2024 22:43:02 +0000 (18:43 -0400)
We loop until the content is non-space, not while the ptr is !NULL

src/modules/rlm_unpack/rlm_unpack.c

index dfdc81a80912261172602cfb8f958deb937af8b5..03cdb922b6fe1c2e46d34b4bb11b17458b5fff9d 100644 (file)
@@ -287,7 +287,7 @@ static ssize_t substring_xlat(UNUSED void *instance, REQUEST *request,
        /*
         *  Trim whitespace
         */
-       while (isspace((uint8_t) *p) && p++);
+       while (isspace((uint8_t) *p)) p++;
 
        /*
         * Find numeric parameters at the end.