Windows error C2466 fix (array size init with 0).

This commit is contained in:
Zied Aouini
2022-07-22 21:58:25 +02:00
parent 9d040f6317
commit 40d7354dd7
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -998,7 +998,7 @@ typedef struct _ndpi_automa {
typedef struct ndpi_str_hash {
unsigned int hash;
void *value;
u_int8_t private_data[1]; /* Avoid error C2466 */
// u_int8_t private_data[1]; /* Avoid error C2466 and do not initiate private data with 0 */
} ndpi_str_hash;
typedef struct ndpi_proto {
+1 -1
View File
@@ -77,7 +77,7 @@ struct pcre_struct {
typedef struct ndpi_str_hash_private {
unsigned int hash;
void *value;
u_int8_t private_data[1];
// u_int8_t private_data[1]; /* Avoid error C2466 and do not initiate private data with 0 */
UT_hash_handle hh;
} ndpi_str_hash_private;
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L