]> granicus.if.org Git - php/commitdiff
Fixed unused var warning
authorIlia Alshanetsky <iliaa@php.net>
Wed, 10 Sep 2008 01:39:35 +0000 (01:39 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Wed, 10 Sep 2008 01:39:35 +0000 (01:39 +0000)
ext/pgsql/pgsql.c

index 2a09f2953e74787caef0ddfbd4aff014530da3ee..a1e4f2d4b6b74f2fa94f22607df9533c433f5641 100644 (file)
@@ -3392,7 +3392,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) {
@@ -3430,6 +3430,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:
                        {