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.4.0alpha1~191^2~2841 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fa33079a142ad0f00d588d73a0573339b6de6da8;p=php - Fix CS and remove extra strlen() call --- diff --git a/ext/posix/posix.c b/ext/posix/posix.c index eda3ec4f8d..c499b54d26 100644 --- a/ext/posix/posix.c +++ b/ext/posix/posix.c @@ -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)); }