Permalink
Browse files

Fixed segfault when one filter is uninitialised in demo program.

  • Loading branch information...
ImoStocky committed Jul 30, 2017
1 parent 84b509a commit 710099659b2ccd8077b381bf4251df3d3c14408b
Showing with 2 additions and 2 deletions.
  1. +2 −2 examples/lnf_ex07_filter.c
@@ -80,8 +80,8 @@ int main(int argc, char **argv) {
if (res == LNF_ERR_OTHER_MSG) {
lnf_error(buf, LNF_MAX_STRING);
fprintf(stderr, "RES: %s\n", buf);
filterp1 = NULL;
}
filterp1 = NULL;
}
if ((res = lnf_filter_init_v2(&filterp2, filter)) != LNF_OK) {
@@ -90,8 +90,8 @@ int main(int argc, char **argv) {
if (res == LNF_ERR_OTHER_MSG) {
lnf_error(buf, LNF_MAX_STRING);
fprintf(stderr, "RES: %s\n", buf);
filterp2 = NULL;
}
filterp2 = NULL;
}
lnf_rec_init(&recp);

0 comments on commit 7100996

Please sign in to comment.