Remove the error message `no text found in paragraph'. Aaron Brown
[sgt/halibut] / bk_info.c
index d4a4aca..85461c4 100644 (file)
--- 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;
            }
 
@@ -706,7 +709,7 @@ static word *info_transform_wordlist(word *words, keywordlist *keywords)
                     * In Info, we do nothing special for xrefs to
                     * numbered list items or bibliography entries.
                     */
-                    break;
+                    continue;
                } else {
                    /*
                     * An xref to a different section has its text