From: David Griffith Date: Sat, 21 Jan 2012 11:24:26 +0000 (-0800) Subject: possibly unintialized variable X-Git-Url: https://scope-eye.net/git/?a=commitdiff_plain;h=089ca2a4213ccc5e1c86ad869a26db585b0e18da;p=liskon_frotz.git possibly unintialized variable --- diff --git a/src/common/fastmem.c b/src/common/fastmem.c index 694c421..081c360 100644 --- a/src/common/fastmem.c +++ b/src/common/fastmem.c @@ -1026,7 +1026,7 @@ int save_undo (void) long diff_size; zword stack_size; undo_t *p; - long pc = p->pc; + long pc; if (f_setup.undo_slots == 0) /* undo feature unavailable */ return -1; @@ -1056,6 +1056,7 @@ int save_undo (void) } while (!p && undo_count); if (p == NULL) return -1; + pc = p->pc; GET_PC (pc); /* Turbo C doesn't like seeing p->pc here */ p->pc = pc; p->frame_count = frame_count;