]> granicus.if.org Git - php/commitdiff
Fix crash bug reported by jani/ilia
authorArd Biesheuvel <abies@php.net>
Wed, 26 Nov 2003 14:04:56 +0000 (14:04 +0000)
committerArd Biesheuvel <abies@php.net>
Wed, 26 Nov 2003 14:04:56 +0000 (14:04 +0000)
ext/interbase/interbase.c

index 9e9af78a6de3a69c14bb0b4b3524cd5b0e9ec9fd..b056ac77823864b41a6f08a468c3fbecf13cb3e1 100644 (file)
@@ -934,9 +934,9 @@ PHP_FUNCTION(ibase_pconnect)
    Close an InterBase connection */
 PHP_FUNCTION(ibase_close)
 {
-       zval **link_arg;
+       zval **link_arg = NULL;
        ibase_db_link *ib_link;
-       int link_id;
+       int link_id = -1;
        
        RESET_ERRMSG;
        
@@ -949,7 +949,6 @@ PHP_FUNCTION(ibase_close)
                                RETURN_FALSE;
                        }
                        convert_to_long_ex(link_arg);
-                       link_id = Z_LVAL_PP(link_arg);
                        break;
                default:
                        WRONG_PARAM_COUNT;