diff --git a/src/tool_help.c b/src/tool_help.c index f7ecb72199..b4dce29904 100644 --- a/src/tool_help.c +++ b/src/tool_help.c @@ -264,7 +264,7 @@ void tool_help(char *category) noflagged = TRUE; } a = findlongopt(lookup); - if(noflagged && (ARGTYPE(a->desc) != ARG_BOOL)) + if(a && noflagged && (ARGTYPE(a->desc) != ARG_BOOL)) /* a --no- prefix for a non-boolean is not specifying a proper option */ a = NULL;