X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/halibut/blobdiff_plain/c885c2ffbb3aea5c255d3b2e767d4450b2bebcc6..babfe3e260c345c06201516d990155ca8aba49e3:/error.c diff --git a/error.c b/error.c index 2dae220..6b4254d 100644 --- a/error.c +++ b/error.c @@ -20,7 +20,7 @@ static void do_error(int code, va_list ap) { char *sp, *sp2; wchar_t *wsp, *wsp2; filepos fpos, fpos2, *fposp; - int flags; + int flags = 0; switch(code) { case err_nomemory: /* no arguments */ @@ -333,9 +333,14 @@ static void do_error(int code, va_list ap) { case err_pfnoafm: fpos = *va_arg(ap, filepos *); sp = va_arg(ap, char *); - sprintf(error, "No metrics available for Type 1 font '%.200s'", sp); + sprintf(error, "no metrics available for Type 1 font '%.200s'", sp); flags = FILEPOS; break; + case err_chmnames: + sprintf(error, "only one of html-mshtmlhelp-chm and " + "html-mshtmlhelp-hhp found"); + flags = PREFIX; + break; case err_whatever: sp = va_arg(ap, char *); vsprintf(error, sp, ap);