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 | 94f59f54921174fc156fade575ca114d331b1bd8 (patch) | |
tree | 06c2548e853c68c2bb24cce2ce3ba75eb3c8497e /source3/intl | |
parent | 7544b0c77382e300da0e2daf2b325527a23e6ddc (diff) | |
download | samba-94f59f54921174fc156fade575ca114d331b1bd8.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.
(This used to be commit f35e9a8b909d3c74be47083ccc4a4e91a14938db)
Diffstat (limited to 'source3/intl')
-rw-r--r-- | source3/intl/lang_tdb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/intl/lang_tdb.c b/source3/intl/lang_tdb.c index 87ef4e39c7b..f12b9b6f151 100644 --- a/source3/intl/lang_tdb.c +++ b/source3/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; } |