summaryrefslogtreecommitdiff
path: root/lib/util/util_str.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-05-03 12:59:36 +1000
committerAndrew Bartlett <abartlet@samba.org>2011-05-03 07:37:07 +0200
commit2c32534d5ba5d009c48f377aa5aea8e77b4fa316 (patch)
treefe6dab5d77474d934bce7b30d4204cb2bffab2b0 /lib/util/util_str.c
parent86a62ab4345b8567a346587d2ddf575523d0b5f8 (diff)
downloadsamba-2c32534d5ba5d009c48f377aa5aea8e77b4fa316.tar.gz
samba-2c32534d5ba5d009c48f377aa5aea8e77b4fa316.tar.bz2
samba-2c32534d5ba5d009c48f377aa5aea8e77b4fa316.zip
lib/util Use lib/util/util_str.c in common, including strequal()
strequal() is now implemented in terms of strcasecmp_m() which is tested in smbtorture and which does not talloc() for ASCII or non-ASCII comparions, and has an ASCII fast-path. Andrew Bartlett
Diffstat (limited to 'lib/util/util_str.c')
-rw-r--r--lib/util/util_str.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util/util_str.c b/lib/util/util_str.c
index 34dd5be56e..9842f11653 100644
--- a/lib/util/util_str.c
+++ b/lib/util/util_str.c
@@ -236,6 +236,6 @@ _PUBLIC_ bool strequal(const char *s1, const char *s2)
if (!s1 || !s2)
return false;
- return strcasecmp(s1,s2) == 0;
+ return strcasecmp_m(s1,s2) == 0;
}