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.2.11RC1~25 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ababa2eabd2d8b899c0522e69f2f04f73f1f96fe;p=php - Fix CS and remove extra strlen() call --- diff --git a/ext/posix/posix.c b/ext/posix/posix.c index 7c2931a865..949fac223d 100644 --- a/ext/posix/posix.c +++ b/ext/posix/posix.c @@ -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)); }