diff --git a/src/connector/odbc/src/todbc_string.h b/src/connector/odbc/src/todbc_string.h index 52d25b8cfe3210ab3e8a97b45d05b7627af3c4a4..eed3356847a16ab383da63eaa8c503312273136a 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]; };