summaryrefslogtreecommitdiff
path: root/source/intl
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-09-05 19:59:55 +0000
committerJeremy Allison <jra@samba.org>2003-09-05 19:59:55 +0000
commitf35e9a8b909d3c74be47083ccc4a4e91a14938db (patch)
tree94bec8e4eb1017cd886adae1518c8ffe2d47ee4f /source/intl
parent3913e43724870c62a0d77ec3e73cbe9480cb6247 (diff)
downloadsamba-f35e9a8b909d3c74be47083ccc4a4e91a14938db.tar.gz
More tuning from cachegrind. Change most trim_string() calls to trim_char(0,
as that's what they do. Fix string_replace() to fast-path ascii. Jeremy.
Diffstat (limited to 'source/intl')
-rw-r--r--source/intl/lang_tdb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/intl/lang_tdb.c b/source/intl/lang_tdb.c
index 87ef4e39c7b..f12b9b6f151 100644
--- a/source/intl/lang_tdb.c
+++ b/source/intl/lang_tdb.c
@@ -53,8 +53,8 @@ static BOOL load_msg(const char *msg_file)
}
if (msgid && strncmp(lines[i], "msgstr \"", 8) == 0) {
msgstr = lines[i] + 8;
- trim_string(msgid, NULL, "\"");
- trim_string(msgstr, NULL, "\"");
+ trim_char(msgid, '\0', '\"');
+ trim_char(msgstr, '\0', '\"');
if (*msgstr == 0) {
msgstr = msgid;
}