enhanced account selection on replies
[claws.git] / src / utils.c
index 0ee97f4ab2ef1fa93ef7941a5915606520e65e26..717d58f13c6f524467019307ee71abc93990cf27 100644 (file)
@@ -168,7 +168,17 @@ gint strcmp2(const gchar *s1, const gchar *s2)
        else
                return strcmp(s1, s2);
 }
-
+/* strstr with NULL-checking */
+gint strstr2(const gchar *s1, const gchar *s2)
+{
+       if (s1 == NULL || s2 == NULL)
+               return -1;
+       else
+               if( strstr(s1, s2) !=NULL) 
+                return 0;
+                else 
+                return -1;
+}
 /* compare paths */
 gint path_cmp(const gchar *s1, const gchar *s2)
 {