diff options
author | Jeremy Allison <jra@samba.org> | 2003-09-05 19:59:55 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2003-09-05 19:59:55 +0000 |
commit | f35e9a8b909d3c74be47083ccc4a4e91a14938db (patch) | |
tree | 94bec8e4eb1017cd886adae1518c8ffe2d47ee4f /source/intl/lang_tdb.c | |
parent | 3913e43724870c62a0d77ec3e73cbe9480cb6247 (diff) | |
download | samba-f35e9a8b909d3c74be47083ccc4a4e91a14938db.tar.gz samba-f35e9a8b909d3c74be47083ccc4a4e91a14938db.tar.xz samba-f35e9a8b909d3c74be47083ccc4a4e91a14938db.zip |
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/lang_tdb.c')
-rw-r--r-- | source/intl/lang_tdb.c | 4 |
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; } |