aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-search-private.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2001-03-02 01:31:33 +0800
committerMichael Zucci <zucchi@src.gnome.org>2001-03-02 01:31:33 +0800
commit90dabbdb225e6c5be9ee5def817254e3aa65040c (patch)
tree2962eb0f14cd3f58f1886288803a41d85eb64470 /camel/camel-search-private.c
parent47497db453865f7db72ec6aa3ff553762b1b501e (diff)
downloadgsoc2013-evolution-90dabbdb225e6c5be9ee5def817254e3aa65040c.tar
gsoc2013-evolution-90dabbdb225e6c5be9ee5def817254e3aa65040c.tar.gz
gsoc2013-evolution-90dabbdb225e6c5be9ee5def817254e3aa65040c.tar.bz2
gsoc2013-evolution-90dabbdb225e6c5be9ee5def817254e3aa65040c.tar.lz
gsoc2013-evolution-90dabbdb225e6c5be9ee5def817254e3aa65040c.tar.xz
gsoc2013-evolution-90dabbdb225e6c5be9ee5def817254e3aa65040c.tar.zst
gsoc2013-evolution-90dabbdb225e6c5be9ee5def817254e3aa65040c.zip
Reconstify variables to match iconv.
2001-03-02 Not Zed <NotZed@Ximian.com> * camel-mime-utils.c (rfc2047_encode_word, rfc2047_decode_word): Reconstify variables to match iconv. * camel-search-private.c (camel_ustrstrcase): Change some assertions back into valid returns. svn path=/trunk/; revision=8452
Diffstat (limited to 'camel/camel-search-private.c')
-rw-r--r--camel/camel-search-private.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/camel/camel-search-private.c b/camel/camel-search-private.c
index a288e91ca6..a6a87c0728 100644
--- a/camel/camel-search-private.c
+++ b/camel/camel-search-private.c
@@ -247,8 +247,11 @@ camel_ustrstrcase (const char *haystack, const char *needle)
g_return_val_if_fail (haystack != NULL, NULL);
g_return_val_if_fail (needle != NULL, NULL);
- g_return_val_if_fail (strlen (needle) != 0, haystack);
- g_return_val_if_fail (strlen (haystack) != 0, NULL);
+
+ if (strlen(needle) == 0)
+ return haystack;
+ if (strlen(haystack) == 0)
+ return NULL;
puni = nuni = alloca (sizeof (unicode_char_t) * strlen (needle));