Skip to content

Commit c9e94fe

Browse files
committed
Fix more warnings about size_t
1 parent da0e2a4 commit c9e94fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/mysqlnd/mysqlnd_loaddata.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,15 +212,15 @@ mysqlnd_handle_local_infile(MYSQLND *conn, const char *filename, zend_bool *is_w
212212

213213
/* read data */
214214
while ((bufsize = infile.local_infile_read (info, buf + MYSQLND_HEADER_SIZE, buflen - MYSQLND_HEADER_SIZE TSRMLS_CC)) > 0) {
215-
if ((ret = conn->net->m.send(conn, buf, bufsize TSRMLS_CC)) < 0) {
215+
if ((ret = conn->net->m.send(conn, buf, bufsize TSRMLS_CC)) == 0) {
216216
DBG_ERR_FMT("Error during read : %d %s %s", CR_SERVER_LOST, UNKNOWN_SQLSTATE, lost_conn);
217217
SET_CLIENT_ERROR(conn->error_info, CR_SERVER_LOST, UNKNOWN_SQLSTATE, lost_conn);
218218
goto infile_error;
219219
}
220220
}
221221

222222
/* send empty packet for eof */
223-
if ((ret = conn->net->m.send(conn, empty_packet, 0 TSRMLS_CC)) < 0) {
223+
if ((ret = conn->net->m.send(conn, empty_packet, 0 TSRMLS_CC)) == 0) {
224224
SET_CLIENT_ERROR(conn->error_info, CR_SERVER_LOST, UNKNOWN_SQLSTATE, lost_conn);
225225
goto infile_error;
226226
}

0 commit comments

Comments
 (0)