Skip to content

Commit 229beda

Browse files
committed
fix
1 parent 586f05e commit 229beda

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ext/mysqli/mysqli_nonapi.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,10 @@ void mysqli_common_connect(INTERNAL_FUNCTION_PARAMETERS, bool is_real_connect, b
9797
if (mysqli_resource) {
9898
mysql = mysqli_resource->ptr;
9999
}
100-
if (!mysql) {
101-
mysql = (MY_MYSQL *) ecalloc(1, sizeof(MY_MYSQL));
102-
self_alloced = 1;
103-
}
100+
}
101+
if (!mysql) {
102+
mysql = (MY_MYSQL *) ecalloc(1, sizeof(MY_MYSQL));
103+
self_alloced = 1;
104104
}
105105
flags |= CLIENT_MULTI_RESULTS; /* needed for mysql_multi_query() */
106106
} else {

0 commit comments

Comments
 (0)