diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2023-01-27 01:39:03 +0100 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2023-01-27 01:39:03 +0100 |
commit | 58439a676116baffb04a24a59ebae81780528327 (patch) | |
tree | f6eff64c94247cc125f11e4f8974f6eebffa30d7 /examples/c-analysed | |
parent | 5e313f43f956dd3a94c65529bad7a90d63c5a0e5 (diff) |
Minor fixes.
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'examples/c-analysed')
-rw-r--r-- | examples/c-analysed/c-analysed.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/c-analysed/c-analysed.c b/examples/c-analysed/c-analysed.c index e7aa865db..1a9e56280 100644 --- a/examples/c-analysed/c-analysed.c +++ b/examples/c-analysed/c-analysed.c @@ -148,7 +148,7 @@ static void csv_buf_add(csv_buf_t buf, size_t * const csv_buf_used, char const * { size_t len; - if (siz_len > 0 && str != NULL) + if (siz_len > 1 && str != NULL) { len = MIN(BUFFER_REMAINING(*csv_buf_used), siz_len); if (len == 0) @@ -564,6 +564,8 @@ static int mainloop(void) int main(int argc, char ** argv) { + init_logging("nDPIsrvd-analysed"); + sock = nDPIsrvd_socket_init(0, 0, 0, 0, simple_json_callback, NULL, NULL); if (sock == NULL) { |