From ac9068da01ea574d6f9f29204b3d126515fb8a1b Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 29 Feb 2012 09:53:51 +0100 Subject: [PATCH] zoom: ccl_err_msg may return 0 So use odr_strdup_null. Just in case. --- src/filter_zoom.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 1.7.10.4