mirror of
https://github.com/php/php-src.git
synced 2024-12-16 05:15:03 +08:00
remove useless check
This commit is contained in:
parent
6beb91c202
commit
3fa5064173
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user