From a7d9720036b82a6981e4c0baa0cc81bd7f89b929 Mon Sep 17 00:00:00 2001 From: freemine Date: Sat, 13 Mar 2021 07:54:16 +0800 Subject: [PATCH] compiler warning, workaround --- src/connector/odbc/src/todbc_string.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/connector/odbc/src/todbc_string.h b/src/connector/odbc/src/todbc_string.h index 52d25b8cfe..eed3356847 100644 --- a/src/connector/odbc/src/todbc_string.h +++ b/src/connector/odbc/src/todbc_string.h @@ -25,7 +25,6 @@ typedef struct todbc_string_s todbc_string_t; struct todbc_string_s { - char enc[64]; // null if init failed because of internal resources shortage const unsigned char *buf; // null-terminator inclusive size_t total_bytes; // not counting null-terminator @@ -33,6 +32,9 @@ struct todbc_string_s { // <= total_bytes // truncated if < total_bytes size_t bytes; // not counting null-terminator + + // move here to satisfy todbc_string_t dummy = {0}; + char enc[64]; }; -- GitLab