Branch: Tag:

2000-06-27

2000-06-27 15:24:34 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Fixed warning.

Rev: src/stralloc.c:1.83

25:   #define HUGE HUGE_VAL   #endif /*!HUGE*/    - RCSID("$Id: stralloc.c,v 1.82 2000/04/15 05:05:28 hubbe Exp $"); + RCSID("$Id: stralloc.c,v 1.83 2000/06/27 15:24:34 grubba Exp $");      #define BEGIN_HASH_SIZE 997   #define MAX_AVG_LINK_LENGTH 3
596:    default:    fatal("Unknown string width!\n");    } +  /* NOT REACHED */ +  return NULL; /* Keep the compiler happy */   }      struct pike_string * debug_make_shared_pcharp(const PCHARP str)
717: Inside #if defined(PIKE_DEBUG)
  {   #ifdef PIKE_DEBUG    extern int d_flag; +  if (d_flag) { +  if (s->refs) { +  fatal("Freeing string with references!\n"); +  }    if(d_flag > 2)    {    if(s->next == (struct pike_string *)-1)
725: Inside #if defined(PIKE_DEBUG)
   if(((long)s->next) & 1)    fatal("Freeing shared string again, memory corrupt or other bug!\n");    } +  }   #endif    unlink_pike_string(s);    debug_free((char *)s,DMALLOC_LOCATION(),1);