From dbfc90df0a9e9bdfa804fbc7065935d8fd3bace5 Mon Sep 17 00:00:00 2001 From: rlar Date: Sat, 12 Jan 2013 23:26:42 +0100 Subject: [PATCH] inpcom.c, bug fix, incorrect start value for `prev' this bug was introduced in the following commit, which `reused' variable prev, failing to preserve its initialization value NULL Author: pnenzi Date: Mon Oct 8 21:10:34 2007 +0000 Improvements in frontend by Phil Barker --- src/frontend/inpcom.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index a86a80a83..377f57d2f 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -629,6 +629,7 @@ inp_readall(FILE *fp, struct line **data, int call_depth, char *dir_name, bool c stripped in the following code. */ inp_stripcomments_deck(working); + prev = NULL; while (working) { for (s = working->li_line; (c = *s) != '\0' && c <= ' '; s++) ;