From: jacob Date: Sun, 31 Dec 2006 18:01:08 +0000 (+0000) Subject: Fix segfault in info backend when invoked with inputs/test.but X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/halibut/commitdiff_plain/e10118c4c2fedf370daf2f1cee41f69097d7a60f Fix segfault in info backend when invoked with inputs/test.but (which triggers err_infonodechar with fpos==NULL). git-svn-id: svn://svn.tartarus.org/sgt/halibut@7044 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/error.c b/error.c index 7fe97ec..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 */