projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
zoom: fix connect options (bad free)
[yaz-moved-to-github.git]
/
src
/
zoom-c.c
diff --git
a/src/zoom-c.c
b/src/zoom-c.c
index
e763918
..
667edb3
100644
(file)
--- a/
src/zoom-c.c
+++ b/
src/zoom-c.c
@@
-477,8
+477,9
@@
ZOOM_API(void)
}
if (remainder != c->host_port) {
}
if (remainder != c->host_port) {
+ remainder = xstrdup(remainder);
xfree(c->host_port);
xfree(c->host_port);
- c->host_port = xstrdup(remainder);
+ c->host_port = remainder;
/*printf("# reset hp='%s'\n", remainder);*/
}
}
/*printf("# reset hp='%s'\n", remainder);*/
}
}