]> 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 8946634235d08cf7e169123312e17be2b721c4b4..579a5059971fdb291678f514f414b7940e5a690a 100644 (file)
@@ -1361,7 +1361,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));
 }