projects
/
metaproxy-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4dc76c5
)
zoom: ccl_err_msg may return 0
author
Adam Dickmeiss
<adam@indexdata.dk>
Wed, 29 Feb 2012 08:53:51 +0000
(09:53 +0100)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Wed, 29 Feb 2012 08:53:51 +0000
(09:53 +0100)
So use odr_strdup_null. Just in case.
src/filter_zoom.cpp
patch
|
blob
|
history
diff --git
a/src/filter_zoom.cpp
b/src/filter_zoom.cpp
index
d67c97c
..
aaa9ef5
100644
(file)
--- a/
src/filter_zoom.cpp
+++ b/
src/filter_zoom.cpp
@@
-1933,7
+1933,7
@@
next_proxy:
wrbuf_destroy(ccl_wrbuf);
if (!cn)
{
- char *addinfo = odr_strdup(odr, ccl_err_msg(cerror));
+ char *addinfo = odr_strdup_null(odr, ccl_err_msg(cerror));
error = YAZ_BIB1_MALFORMED_QUERY;
switch (cerror)