Skip to content

Commit 1fb8429

Browse files
committed
Quoter refactoring nits
1 parent c9aa720 commit 1fb8429

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

ext/pdo_dblib/dblib_driver.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ static zend_string* dblib_handle_quoter(pdo_dbh_t *dbh, const zend_string *unquo
181181
*q++ = '\'';
182182

183183
for (i = 0; i < ZSTR_LEN(unquoted); i++) {
184-
if (unquoted[i] == '\'') {
184+
if (ZSTR_VAL(unquoted)[i] == '\'') {
185185
*q++ = '\'';
186186
*q++ = '\'';
187187
} else {

ext/pdo_mysql/mysql_driver.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,6 @@ static zend_string* mysql_handle_quoter(pdo_dbh_t *dbh, const zend_string *unquo
342342

343343
quoted_str = zend_string_init(quoted, quotedlen, 0);
344344
efree(quoted);
345-
return quoted_str;
346345
PDO_DBG_RETURN(quoted_str);
347346
}
348347
/* }}} */

0 commit comments

Comments
 (0)