changeset 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 726fc9f17902
children c1258ae018ee
files src/neon/neon.c src/neon/neon.h
diffstat 2 files changed, 1 insertions(+), 4 deletions(-) [+]
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;
--- a/src/neon/neon.h	Wed May 28 15:41:52 2008 +0200
+++ b/src/neon/neon.h	Wed May 28 20:31:51 2008 +0300
@@ -47,8 +47,6 @@
 gchar *neon_aud_vfs_metadata_impl(VFSFile* file, const gchar * field);
 off_t neon_aud_vfs_fsize_impl(VFSFile* file);
 
-ne_uri purl;
-
 typedef enum {
     NEON_READER_INIT=0,
     NEON_READER_RUN=1,