summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJani Taskinen <jani@php.net>2009-08-06 11:11:15 +0000
committerJani Taskinen <jani@php.net>2009-08-06 11:11:15 +0000
commitababa2eabd2d8b899c0522e69f2f04f73f1f96fe (patch)
treefffecbe208c7fbab7370810a20fd982addc5f63e
parent76f8041036e913a94b94e1ff2a4b21912277ba7c (diff)
downloadphp-git-ababa2eabd2d8b899c0522e69f2f04f73f1f96fe.tar.gz
- Fix CS and remove extra strlen() call
-rw-r--r--ext/posix/posix.c4
1 files changed, 3 insertions, 1 deletions
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));
}