summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorSterling Hughes <sterling@php.net>2002-11-24 15:11:43 +0000
committerSterling Hughes <sterling@php.net>2002-11-24 15:11:43 +0000
commit490903da5ad33a7ff40d81339fd5803f56c935b1 (patch)
tree85b68f9225d0ef365ba62f3ec6113b6c0056aa03 /ext
parent51f5b6debbed1da714fd21d76e73609ce9463627 (diff)
downloadphp-git-490903da5ad33a7ff40d81339fd5803f56c935b1.tar.gz
null after the erealloc()
Diffstat (limited to 'ext')
-rw-r--r--ext/pgsql/pgsql.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c
index 6aee07e890..0b75af16fa 100644
--- a/ext/pgsql/pgsql.c
+++ b/ext/pgsql/pgsql.c
@@ -2730,8 +2730,8 @@ static unsigned char * php_pgsql_unescape_bytea(unsigned char *strtext, size_t *
break;
}
}
- buffer[buflen] = '\0';
buffer = erealloc(buffer, buflen+1);
+ buffer[buflen] = 0;
if (buffer == NULL)
return NULL;