From 4f7d8650b0ee4d2add656ad7657455232d5385f0 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Fri, 11 Apr 2014 11:04:39 +0200 Subject: [PATCH] Base wrbuf.c_str_null on wrbuf_cstr_null --- src/util.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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); } /* -- 1.7.10.4