1
0
mirror of https://github.com/php/php-src.git synced 2026-04-09 00:53:30 +02:00

- Spare a byte :)

This commit is contained in:
Zeev Suraski
2000-03-13 17:59:30 +00:00
parent e7eccd2438
commit fe37f4bca9

View File

@@ -72,7 +72,7 @@ static void build_runtime_defined_function_key(zval *result, zval *name, zend_op
/* NULL, name length, filename length, line number length */
result->value.str.len = 1+name->value.str.len+strlen(filename)+lineno_len+1;
result->value.str.val = (char *) emalloc(result->value.str.len+1);
result->value.str.val = (char *) emalloc(result->value.str.len); /* Extra null byte is allocated a line before */
sprintf(result->value.str.val, "%c%s%s%s", '\0', name->value.str.val, filename, lineno_buf);
result->type = IS_STRING;
result->refcount = 1;