Protect the dereference of null base_type. Reported-by: foobar <foobar@xxxxxxxxxx> Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx> --- ctags.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ctags.c b/ctags.c index 9ec6b3c37..30976542d 100644 --- a/ctags.c +++ b/ctags.c @@ -135,7 +135,7 @@ static void examine_symbol(struct symbol *sym) switch (sym->type) { case SYM_NODE: - if (base->type == SYM_FN) + if (base && base->type == SYM_FN) sym->kind = 'f'; examine_symbol(base); break; -- 2.15.0 -- To unsubscribe from this list: send the line "unsubscribe linux-sparse" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html