mirror of
https://github.com/optim-enterprises-bv/nDPId.git
synced 2025-10-29 17:32:23 +00:00
Test for diff's in flow-analyse CSV generator daemon.
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
This commit is contained in:
@@ -150,7 +150,7 @@ static void csv_buf_add(csv_buf_t buf, size_t * const csv_buf_used, char const *
|
||||
|
||||
if (siz_len > 0 && str != NULL)
|
||||
{
|
||||
len = MIN(BUFFER_REMAINING(*csv_buf_used), siz_len - 1);
|
||||
len = MIN(BUFFER_REMAINING(*csv_buf_used), siz_len);
|
||||
if (len == 0)
|
||||
{
|
||||
return;
|
||||
@@ -621,5 +621,8 @@ int main(int argc, char ** argv)
|
||||
daemonize_shutdown(pidfile);
|
||||
closelog();
|
||||
|
||||
fflush(csv_fp);
|
||||
fclose(csv_fp);
|
||||
|
||||
return retval;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user