Fix some warnings in headers search.
authorJosé Dapena Paz <jdapena@igalia.com>
Fri, 5 Feb 2010 12:33:12 +0000 (13:33 +0100)
committerJosé Dapena Paz <jdapena@igalia.com>
Fri, 5 Feb 2010 15:27:32 +0000 (16:27 +0100)
src/widgets/modest-header-view.c

index 2b521a9..448fdaa 100644 (file)
@@ -2172,15 +2172,15 @@ header_match_string (TnyHeader *header, gchar **words)
        to = tny_header_dup_to (header);
        from = tny_header_dup_from (header);
 
        to = tny_header_dup_to (header);
        from = tny_header_dup_from (header);
 
-       subject_fold = g_utf8_casefold (subject, -1);
+       subject_fold = subject?g_utf8_casefold (subject, -1):NULL;
        g_free (subject);
        g_free (subject);
-       bcc_fold = g_utf8_casefold (bcc, -1);
+       bcc_fold = bcc?g_utf8_casefold (bcc, -1):NULL;
        g_free (bcc);
        g_free (bcc);
-       cc_fold = g_utf8_casefold (cc, -1);
+       cc_fold = cc?g_utf8_casefold (cc, -1):NULL;
        g_free (cc);
        g_free (cc);
-       to_fold = g_utf8_casefold (to, -1);
+       to_fold = to?g_utf8_casefold (to, -1):NULL;
        g_free (to);
        g_free (to);
-       from_fold = g_utf8_casefold (from, -1);
+       from_fold = from?g_utf8_casefold (from, -1):NULL;
        g_free (from);
 
        found = TRUE;
        g_free (from);
 
        found = TRUE;