]> 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 eda3ec4f8d6e9102c7d69139eb6c7a523e89eb31..c499b54d265b2df06c7f89312ab216ec3219441f 100644 (file)
@@ -1390,7 +1390,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));
 }