]> granicus.if.org Git - php/commitdiff
- Fix CS and remove extra strlen() call
authorJani Taskinen <jani@php.net>
Thu, 6 Aug 2009 11:11:15 +0000 (11:11 +0000)
committerJani Taskinen <jani@php.net>
Thu, 6 Aug 2009 11:11:15 +0000 (11:11 +0000)
ext/posix/posix.c

index 7c2931a8657134a4b88795bbb5b764fcc82a905c..949fac223dc718003c56e1b057605abf0efb2471 100644 (file)
@@ -1196,7 +1196,9 @@ PHP_FUNCTION(posix_initgroups)
                RETURN_FALSE;
        }
 
-       if(strlen(name)==0) RETURN_FALSE;
+       if (name_len == 0) {
+               RETURN_FALSE;
+       }
 
        RETURN_BOOL(!initgroups((const char *)name, basegid));
 }