diff options
author | Antony Dovgal <tony2001@php.net> | 2007-11-29 21:23:59 +0000 |
---|---|---|
committer | Antony Dovgal <tony2001@php.net> | 2007-11-29 21:23:59 +0000 |
commit | 39522d9588784465ab7240fb4776e66f70573dc4 (patch) | |
tree | a7f828a0a3f4306233aa742a955a9c322415409e | |
parent | badfa1304d60da8829ff9b80a7c8971f1a90f633 (diff) | |
download | php-git-39522d9588784465ab7240fb4776e66f70573dc4.tar.gz |
fix build
-rw-r--r-- | ext/pgsql/pgsql.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c index 4e32cb3fbc..0b22c8e970 100644 --- a/ext/pgsql/pgsql.c +++ b/ext/pgsql/pgsql.c @@ -5739,6 +5739,9 @@ PHP_PGSQL_API int php_pgsql_result2array(PGresult *pg_result, zval *ret_array TS } else { char *element = PQgetvalue(pg_result, pg_row, i); if (element) { + char *data; + size_t data_len; + data_len = strlen(element); data = safe_estrndup(element, data_len); |