aboutsummaryrefslogtreecommitdiff
path: root/src/lib/ndpi_utils.c
diff options
context:
space:
mode:
authormark andrews <mandrews@liveaction.com>2022-09-11 11:51:06 -0700
committerToni <matzeton@googlemail.com>2022-09-21 18:03:22 +0200
commit5d5b46e5140d046e68e95be02ecb421d330b8b32 (patch)
treebeccb90de34a6e601c9bdf5eff2c4dd1444a4021 /src/lib/ndpi_utils.c
parent03d217eae60c45288131676b736a9d7ece1baca2 (diff)
Add proj and sln for compile of dynamic x64 lib under Visual Studio 2019.
* add CI support via MSBuild Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
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 d7de4e713..2dc39dd3c 100644
--- a/src/lib/ndpi_utils.c
+++ b/src/lib/ndpi_utils.c
@@ -1538,7 +1538,7 @@ int ndpi_flow2json(struct ndpi_detection_module_struct *ndpi_struct,
u_int16_t src_port, u_int16_t dst_port,
ndpi_protocol l7_protocol,
ndpi_serializer *serializer) {
- char src_name[32] = {}, dst_name[32] = {};
+ char src_name[32] = {'\0'}, dst_name[32] = {'\0'};
if(ip_version == 4) {
inet_ntop(AF_INET, &src_v4, src_name, sizeof(src_name));