diff src/neon/neon.c @ 2659:503ea4219e17

A global and unlocked ne_uri structure was being used for some reason. This may have caused some thread concurrency problems. Fixed.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 28 May 2008 20:31:51 +0300
parents a2670c689319
children 8e4abb83e560
line wrap: on
line diff
--- a/src/neon/neon.c	Wed May 28 15:41:52 2008 +0200
+++ b/src/neon/neon.c	Wed May 28 20:31:51 2008 +0300
@@ -101,8 +101,7 @@
         _LEAVE NULL;
     }
 
-    h->purl = &purl;
-    memset(h->purl, 0, sizeof(ne_uri));
+    h->purl = g_new0(ne_uri, 1);
     h->content_length = -1;
 
     _LEAVE h;