diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c index c0d4a5117aefc..75b987d6b917e 100644 --- a/ext/pgsql/pgsql.c +++ b/ext/pgsql/pgsql.c @@ -6215,7 +6215,7 @@ PHP_FUNCTION(pg_put_copy_end) { zval *pgsql_link; pgsql_link_handle *link; - zend_string *error; + zend_string *error = NULL; char *err = NULL; ZEND_PARSE_PARAMETERS_START(1, 2)