1
0
mirror of https://github.com/mariadb-corporation/mariadb-connector-c.git synced 2025-08-05 15:55:58 +03:00

Fix gcc warnings

This commit is contained in:
Georg Richter
2019-09-04 09:36:20 +02:00
parent f0432c98c9
commit 9faaea38bc
2 changed files with 4 additions and 0 deletions

View File

@@ -125,7 +125,9 @@ extern unsigned int mariadb_deinitialize_ssl;
{ \
(a)->net.last_errno= (b);\
strncpy((a)->net.sqlstate, (c), SQLSTATE_LENGTH);\
(a)->net.sqlstate[SQLSTATE_LENGTH]= 0;\
strncpy((a)->net.last_error, (d) ? (d) : ER((b)), MYSQL_ERRMSG_SIZE - 1);\
(a)->net.last_error[MYSQL_ERRMSG_SIZE - 1]= 0;\
}
/* For mysql_async.c */