From 245bd13cec81f9e6f155d8d2c47e3ff80d0be8ca Mon Sep 17 00:00:00 2001 From: rlar Date: Thu, 30 May 2013 20:12:30 +0200 Subject: [PATCH] inpcom.c, local scope for `global_card' --- src/frontend/inpcom.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index 285af80eb..3f13e9d28 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -300,7 +300,7 @@ inp_readall(FILE *fp, int call_depth, char *dir_name, bool comfile, bool intfile intfile: in, TRUE if deck is generated from internal circarray */ { - struct line *end = NULL, *cc = NULL, *prev, *working, *newcard, *global_card; + struct line *end = NULL, *cc = NULL, *prev, *working, *newcard; char *buffer = NULL, c; /* segfault fix */ #ifdef XSPICE @@ -601,7 +601,7 @@ inp_readall(FILE *fp, int call_depth, char *dir_name, bool comfile, bool intfile return NULL; if (call_depth == 0 && found_end == TRUE) { - global_card = alloc(struct line); + struct line *global_card = alloc(struct line); global_card->li_error = NULL; global_card->li_actual = NULL; global_card->li_line = copy(".global gnd");