From: Adam Dickmeiss Date: Fri, 11 Apr 2014 09:04:39 +0000 (+0200) Subject: Base wrbuf.c_str_null on wrbuf_cstr_null X-Git-Tag: v1.5.0~7 X-Git-Url: http://lists.indexdata.com/cgi-bin?a=commitdiff_plain;ds=sidebyside;h=4f7d8650b0ee4d2add656ad7657455232d5385f0;p=metaproxy-moved-to-github.git Base wrbuf.c_str_null on wrbuf_cstr_null --- diff --git a/src/util.cpp b/src/util.cpp index 732e552..f23c00c 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -734,9 +734,7 @@ const char *mp::wrbuf::c_str() const char *mp::wrbuf::c_str_null() { - if (wrbuf_len(m_wrbuf)) - return wrbuf_cstr(m_wrbuf); - return 0; + return wrbuf_cstr_null(m_wrbuf); } /*