From: wessels <> Date: Tue, 15 Sep 1998 13:17:50 +0000 (+0000) Subject: make x-routines a little bit mt-safer X-Git-Tag: SQUID_3_0_PRE1~2714 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c5a615e351553da36685c9bcbd507e9658bab40d;p=thirdparty%2Fsquid.git make x-routines a little bit mt-safer --- diff --git a/lib/util.c b/lib/util.c index 70b9289914..6791ba5d3d 100644 --- a/lib/util.c +++ b/lib/util.c @@ -1,6 +1,6 @@ /* - * $Id: util.c,v 1.63 1998/07/31 22:23:55 wessels Exp $ + * $Id: util.c,v 1.64 1998/09/15 07:17:50 wessels Exp $ * * DEBUG: * AUTHOR: Harvest Derived @@ -403,7 +403,7 @@ xmalloc_find_leaks(void) void * xmalloc(size_t sz) { - static void *p; + void *p; if (sz < 1) sz = 1; @@ -479,7 +479,7 @@ xxfree(void *s) void * xrealloc(void *s, size_t sz) { - static void *p; + void *p; #if XMALLOC_TRACE xmalloc_show_trace(s, -1); @@ -524,7 +524,7 @@ xrealloc(void *s, size_t sz) void * xcalloc(int n, size_t sz) { - static void *p; + void *p; if (n < 1) n = 1; @@ -563,7 +563,7 @@ xcalloc(int n, size_t sz) char * xstrdup(const char *s) { - static char *p = NULL; + char *p = NULL; size_t sz; if (s == NULL) {