From: Jani Taskinen Date: Thu, 6 Aug 2009 11:11:15 +0000 (+0000) Subject: - Fix CS and remove extra strlen() call X-Git-Tag: php-5.3.1RC1~156 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a93fef41c263c1c484b2e5ee82ca43cd8fd5be1b;p=php - Fix CS and remove extra strlen() call --- diff --git a/ext/posix/posix.c b/ext/posix/posix.c index 8946634235..579a505997 100644 --- a/ext/posix/posix.c +++ b/ext/posix/posix.c @@ -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)); }