From: Marcus Boerger Date: Sat, 31 May 2003 22:03:57 +0000 (+0000) Subject: - fix one warning X-Git-Tag: RELEASE_1_0_2~477 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cc629666e8f2cd676446f34528d6c23c91682fd2;p=php - fix one warning - fix some commit by accident? # did someone here mix c and php code ? --- diff --git a/ext/mysqli/mysqli_api.c b/ext/mysqli/mysqli_api.c index f237c960d6..3dcff81226 100644 --- a/ext/mysqli/mysqli_api.c +++ b/ext/mysqli/mysqli_api.c @@ -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; }