aboutsummaryrefslogtreecommitdiff
path: root/src/lib/ndpi_utils.c
diff options
context:
space:
mode:
authorZied Aouini <aouinizied@gmail.com>2022-07-22 21:58:25 +0200
committerZied Aouini <aouinizied@gmail.com>2022-07-22 21:58:25 +0200
commit40d7354dd7cedb80bcf1eb5a0480c7efc85eafc1 (patch)
tree475582a64ab8b8bf08818729353657856bfa2193 /src/lib/ndpi_utils.c
parent9d040f63170951266da688551f65b353c8145072 (diff)
Windows error C2466 fix (array size init with 0).
Diffstat (limited to 'src/lib/ndpi_utils.c')
-rw-r--r--src/lib/ndpi_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ndpi_utils.c b/src/lib/ndpi_utils.c
index 7622245d1..6f8b4603c 100644
--- a/src/lib/ndpi_utils.c
+++ b/src/lib/ndpi_utils.c
@@ -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