Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/yaz
authorAdam Dickmeiss <adam@indexdata.dk>
Fri, 1 Jun 2012 07:04:01 +0000 (09:04 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Fri, 1 Jun 2012 07:04:01 +0000 (09:04 +0200)
src/zoom-c.c

index e763918..667edb3 100644 (file)
@@ -477,8 +477,9 @@ ZOOM_API(void)
         }
 
         if (remainder != c->host_port) {
+            remainder = xstrdup(remainder);
             xfree(c->host_port);
-            c->host_port = xstrdup(remainder);
+            c->host_port = remainder;
             /*printf("# reset hp='%s'\n", remainder);*/
         }
     }