From 519b2970ec5618ef7e86748a7f762e2a9669f2ab Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Thu, 1 Sep 2016 15:06:11 +0200 Subject: [PATCH] detect: don't print (null) in --list-keywords=all --- src/detect.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/detect.c b/src/detect.c index 3ae6e0f860..7a779f3ae4 100644 --- a/src/detect.c +++ b/src/detect.c @@ -4256,8 +4256,10 @@ void SigTableList(const char *keyword) } } else if (!strcmp("all", keyword)) { for (i = 0; i < size; i++) { - printf("%s:\n", sigmatch_table[i].name); - SigMultilinePrint(i, "\t"); + if (sigmatch_table[i].name != NULL) { + printf("%s:\n", sigmatch_table[i].name); + SigMultilinePrint(i, "\t"); + } } } else { for (i = 0; i < size; i++) {