From: Adam Dickmeiss Date: Wed, 29 Feb 2012 08:53:51 +0000 (+0100) Subject: zoom: ccl_err_msg may return 0 X-Git-Tag: v1.3.25~1 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=ac9068da01ea574d6f9f29204b3d126515fb8a1b;p=metaproxy-moved-to-github.git zoom: ccl_err_msg may return 0 So use odr_strdup_null. Just in case. --- diff --git a/src/filter_zoom.cpp b/src/filter_zoom.cpp index d67c97c..aaa9ef5 100644 --- 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)