From 9167a18561399960b59ebb95de073729e5307880 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?= <grubba@grubba.org> Date: Thu, 4 Jun 2015 18:00:39 +0200 Subject: [PATCH] Build [debug]: Fixed some uninitialized pointers. --- src/gc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gc.c b/src/gc.c index e3d0a973ec..c1db83d65d 100644 --- a/src/gc.c +++ b/src/gc.c @@ -721,7 +721,7 @@ void describe_location(void *real_memblock, int flags) { struct program *p; - void *memblock=0, *descblock, *inblock; + void *memblock=0, *descblock, *inblock = NULL; if(!location) return; /* fprintf(stderr,"**Location of (short) svalue: %p\n",location); */ @@ -1031,7 +1031,7 @@ static void debug_gc_fatal_va (void *DEBUGUSED(a), int DEBUGUSED(type), int DEBU #ifdef PIKE_DEBUG if (a) { - void *inblock; + void *inblock = NULL; /* Temporarily jumping out of gc to avoid being caught in debug * checks in describe(). */ Pike_in_gc = 0; -- GitLab