]> granicus.if.org Git - php/commitdiff
- fix one warning
authorMarcus Boerger <helly@php.net>
Sat, 31 May 2003 22:03:57 +0000 (22:03 +0000)
committerMarcus Boerger <helly@php.net>
Sat, 31 May 2003 22:03:57 +0000 (22:03 +0000)
- fix some commit by accident?
# did someone here mix c and php code ?

ext/mysqli/mysqli_api.c

index f237c960d6d2ab4ab8fb919bbfca62495192d5f3..3dcff81226b6f1c7e32c1210424f283efedb51be 100644 (file)
@@ -1303,7 +1303,7 @@ PHP_FUNCTION(mysqli_prepare)
        MYSQL                   *mysql;
        STMT                    *stmt;
        PR_MYSQL                *prmysql;
-       PR_STMT                 *prstmt;
+       PR_STMT                 *prstmt = NULL;
        char                    *query = NULL;
        unsigned int    query_len;
        zval                    *mysql_link;
@@ -1436,7 +1436,7 @@ PHP_FUNCTION(mysqli_real_connect)
        MYSQLI_FETCH_RESOURCE(mysql, MYSQL *, prmysql, PR_MYSQL *, &mysql_link, "mysqli_link");
 
        /* remove some insecure options */
-       $flags ^= CLIENT_MULTI_QUERIES;   // don't allow multi_queries via connect parameter
+       flags ^= CLIENT_MULTI_QUERIES;   // don't allow multi_queries via connect parameter
        if (PG(open_basedir) && strlen(PG(open_basedir))) {
                flags ^= CLIENT_LOCAL_FILES;
        }