summaryrefslogtreecommitdiff
path: root/lib/String.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/String.cc')
-rw-r--r--lib/String.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/String.cc b/lib/String.cc
index f24dcca..bd265a0 100644
--- a/lib/String.cc
+++ b/lib/String.cc
@@ -54,7 +54,7 @@ String::String(const char * s) : str(Base::strdup(s)), siz(::strlen(str)) {
#endif
}
-String::String(int hs, char * s) : str(Base::strdup(s ? s : "")), siz(hs) {
+String::String(int hs, char * s) : str(s), siz(hs) {
#ifdef DEBUG
fprintf(stderr, _("Fast-Creating a string with `%s' at %p from %p, this = %p\n"), str, str, s, this);
#endif