summaryrefslogtreecommitdiff
path: root/ext/standard/string.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/string.c')
-rw-r--r--ext/standard/string.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/ext/standard/string.c b/ext/standard/string.c
index 65b995de86..b6fe0f03ae 100644
--- a/ext/standard/string.c
+++ b/ext/standard/string.c
@@ -113,9 +113,6 @@ static char *php_bin2hex(const unsigned char *old, const size_t oldlen, size_t *
size_t i, j;
result = (char *) emalloc(oldlen * 2 * sizeof(char) + 1);
- if (!result) {
- return result;
- }
for (i = j = 0; i < oldlen; i++) {
result[j++] = hexconvtab[old[i] >> 4];