Fix segfault in info backend when invoked with inputs/test.but
authorjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Sun, 31 Dec 2006 18:01:08 +0000 (18:01 +0000)
committerjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Sun, 31 Dec 2006 18:01:08 +0000 (18:01 +0000)
(which triggers err_infonodechar with fpos==NULL).

git-svn-id: svn://svn.tartarus.org/sgt/halibut@7044 cda61777-01e9-0310-a592-d414129be87e

error.c

diff --git a/error.c b/error.c
index 7fe97ec..6b4254d 100644 (file)
--- 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 */