pike.git / src / gc.c

version» Context lines:

pike.git/src/gc.c:714:    * really be printed..    */   void describe_location(void *real_memblock,    int type,    void *location,    int indent,    int depth,    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); */       if(type!=-1 && real_memblock != (void *) -1) memblock=real_memblock;      #ifdef DEBUG_MALLOC    if(memblock == 0 || type == -1)    {    extern void *dmalloc_find_memblock_base(void *);    memblock=dmalloc_find_memblock_base(location);
pike.git/src/gc.c:1024:      static void debug_gc_fatal_va (void *DEBUGUSED(a), int DEBUGUSED(type), int DEBUGUSED(flags),    const char *fmt, va_list args)   {    int orig_gc_pass = Pike_in_gc;       (void) vfprintf(stderr, fmt, args);      #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;    if (type == PIKE_T_UNKNOWN)    type = attempt_to_identify (a, &inblock);    describe_something (a, type, 0, 0, 0, inblock);    if (flags & 1) locate_references(a);    Pike_in_gc = orig_gc_pass;    }