diff options
author | Anatol Belski <ab@php.net> | 2014-09-18 21:49:08 +0200 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2014-09-19 00:06:32 +0200 |
commit | 3fa506417329c93ed47c1e79a03335b54d6838b6 (patch) | |
tree | e78879dbe998e63eb66f15a19d6731277a4aaae9 /ext/standard | |
parent | 6beb91c202495fea23534a5bfba58dd12a290152 (diff) | |
download | php-git-3fa506417329c93ed47c1e79a03335b54d6838b6.tar.gz |
remove useless check
Diffstat (limited to 'ext/standard')
-rw-r--r-- | ext/standard/base64.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/ext/standard/base64.c b/ext/standard/base64.c index 0a4093f185..5826c05947 100644 --- a/ext/standard/base64.c +++ b/ext/standard/base64.c @@ -59,10 +59,6 @@ PHPAPI zend_string *php_base64_encode(const unsigned char *str, size_t length) / unsigned char *p; zend_string *result; - if (length < 0) { - return NULL; - } - result = zend_string_alloc(((length + 2) / 3) * 4 * sizeof(char), 0); p = (unsigned char *)result->val; |