diff options
author | Nardi Ivan <nardi.ivan@gmail.com> | 2020-04-06 17:58:20 +0200 |
---|---|---|
committer | Nardi Ivan <nardi.ivan@gmail.com> | 2020-04-08 15:15:34 +0200 |
commit | a60854bae683c3b16c023d03b02bdcd139ca0bfd (patch) | |
tree | e00deafd3df5826e13de56ffab90ef4ca8aab4d5 /example/ndpiReader.c | |
parent | 7b690d8b2d67ae5096941abae536ecdf75bf4540 (diff) |
Fix some debug messages
Diffstat (limited to 'example/ndpiReader.c')
-rw-r--r-- | example/ndpiReader.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c index bc9df4294..6457cbf09 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -1117,7 +1117,8 @@ static void printFlow(u_int16_t id, struct ndpi_flow_info *flow, u_int16_t threa flowGetBDMeanandVariance(flow); } - fprintf(csv_fp, "\n"); + if(csv_fp) + fprintf(csv_fp, "\n"); return; } |