Base wrbuf.c_str_null on wrbuf_cstr_null
authorAdam Dickmeiss <adam@indexdata.dk>
Fri, 11 Apr 2014 09:04:39 +0000 (11:04 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Fri, 11 Apr 2014 09:04:39 +0000 (11:04 +0200)
src/util.cpp

index 732e552..f23c00c 100644 (file)
@@ -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);
 }
 
 /*