Skip to content

Commit efaafd4

Browse files
committed
fix C89 compat
1 parent 35be439 commit efaafd4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ext/pdo_dblib/dblib_driver.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,6 @@ static int pdo_dblib_handle_factory(pdo_dbh_t *dbh, zval *driver_options TSRMLS_
286286

287287
};
288288

289-
nvers = sizeof(tdsver)/sizeof(tdsver[0]);
290-
291289
struct pdo_data_src_parser vars[] = {
292290
{ "charset", NULL, 0 }
293291
,{ "appname", "PHP " PDO_DBLIB_FLAVOUR, 0 }
@@ -298,6 +296,7 @@ static int pdo_dblib_handle_factory(pdo_dbh_t *dbh, zval *driver_options TSRMLS_
298296
};
299297

300298
nvars = sizeof(vars)/sizeof(vars[0]);
299+
nvers = sizeof(tdsver)/sizeof(tdsver[0]);
301300

302301
php_pdo_parse_data_source(dbh->data_source, dbh->data_source_len, vars, nvars);
303302

0 commit comments

Comments
 (0)