X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/halibut/blobdiff_plain/90a0531efd29b72074a52bcb9fae7543464b83e0..176f95481102941f215f5b36a17e8b43f6bd513e:/bk_info.c diff --git a/bk_info.c b/bk_info.c index 0f9f1e5..85461c4 100644 --- a/bk_info.c +++ b/bk_info.c @@ -267,6 +267,9 @@ void info_backend(paragraph *sourceform, keywordlist *keywords, currnode = newnode; } break; + default: + p->private_data = NULL; + break; } /* @@ -313,12 +316,12 @@ void info_backend(paragraph *sourceform, keywordlist *keywords, char *s; section = uadv(p->keyword); - shortname = *section ? uadv(section) : NULL; - longname = *shortname ? uadv(shortname) : NULL; - kw = *longname ? uadv(longname) : NULL; + shortname = *section ? uadv(section) : L""; + longname = *shortname ? uadv(shortname) : L""; + kw = *longname ? uadv(longname) : L""; if (!*longname) { - error(err_infodirentry, &p->fpos); + error(err_cfginsufarg, &p->fpos, p->origkeyword, 3); continue; }