projects
/
metaproxy-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b1aea4
)
Base wrbuf.c_str_null on wrbuf_cstr_null
author
Adam Dickmeiss
<adam@indexdata.dk>
Fri, 11 Apr 2014 09:04:39 +0000
(11:04 +0200)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Fri, 11 Apr 2014 09:04:39 +0000
(11:04 +0200)
src/util.cpp
patch
|
blob
|
history
diff --git
a/src/util.cpp
b/src/util.cpp
index
732e552
..
f23c00c
100644
(file)
--- 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);
}
/*