]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
make x-routines a little bit mt-safer
authorwessels <>
Tue, 15 Sep 1998 13:17:50 +0000 (13:17 +0000)
committerwessels <>
Tue, 15 Sep 1998 13:17:50 +0000 (13:17 +0000)
lib/util.c

index 70b928991474edb8ffd8564dfcb09e476658ee04..6791ba5d3d79ab05a4473f466c0e686f041a7cb2 100644 (file)
@@ -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) {