Skip to content

Commit

Permalink
fix segfault while writing
Browse files Browse the repository at this point in the history
  • Loading branch information
haegardev committed Aug 25, 2017
1 parent c110e50 commit 0fc6b0e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pcapdj.c
Expand Up @@ -310,6 +310,8 @@ void init(void)
stats.starttime = localtime(&stats.startepoch);
assert(stats.starttime);

wtap_init();

/* Install signal handler */
sa.sa_handler = &sig_handler;
sigaction(SIGUSR1, &sa, NULL);
Expand Down

0 comments on commit 0fc6b0e

Please sign in to comment.