summaryrefslogtreecommitdiff
path: root/ext/pgsql/pgsql.c
diff options
context:
space:
mode:
authorXinchen Hui <laruence@php.net>2015-07-27 11:17:23 +0800
committerXinchen Hui <laruence@php.net>2015-07-27 11:17:23 +0800
commit9f56cfa9a18c3684306af501436c1bbcd1621820 (patch)
tree58357417459e87208d04a3299ed94e0ba6c4a3ed /ext/pgsql/pgsql.c
parent6aeee47b2cd47915ccfa3b41433a3f57aea24dd5 (diff)
parent70c6a6f624ec07be37ce90424d0765e3c78d1bf5 (diff)
downloadphp-git-9f56cfa9a18c3684306af501436c1bbcd1621820.tar.gz
Merge branch 'master' of git.php.net:php-src
Diffstat (limited to 'ext/pgsql/pgsql.c')
-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 1172682bbc..888ae76cce 100644
--- a/ext/pgsql/pgsql.c
+++ b/ext/pgsql/pgsql.c
@@ -2368,7 +2368,7 @@ static char *get_field_name(PGconn *pgsql, Oid oid, HashTable *list)
continue;
}
- ZSTR_LEN(str.s) = 0;
+ smart_str_free(&str);
smart_str_appends(&str, "pgsql_oid_");
smart_str_appends(&str, tmp_oid);
smart_str_0(&str);