]> granicus.if.org Git - php/commitdiff
- Fixed compiler warning
authorFelipe Pena <felipe@php.net>
Mon, 3 Nov 2008 17:24:12 +0000 (17:24 +0000)
committerFelipe Pena <felipe@php.net>
Mon, 3 Nov 2008 17:24:12 +0000 (17:24 +0000)
ext/pgsql/pgsql.c

index 02d36e7b64d9980506ceba8613f16e978d0e6a3b..819ab087296465ddee39b87366e72a5fd734f376 100644 (file)
@@ -3393,7 +3393,7 @@ PHP_FUNCTION(pg_lo_import)
        int id = -1, name_len;
        int argc = ZEND_NUM_ARGS();
        PGconn *pgsql;
-       Oid wanted_oid, returned_oid;
+       Oid returned_oid;
 
        if (zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, argc TSRMLS_CC,
                                                                 "rs|z", &pgsql_link, &file_in, &name_len, &oid) == SUCCESS) {
@@ -3427,6 +3427,7 @@ PHP_FUNCTION(pg_lo_import)
 #ifndef HAVE_PG_LO_IMPORT_WITH_OID
                php_error_docref(NULL TSRMLS_CC, E_NOTICE, "OID value passing not supported");
 #else
+               Oid wanted_oid;
                switch (Z_TYPE_P(oid)) {
                case IS_STRING:
                        {