2007-09-02 [colin] 2.10.0cvs190
[claws.git] / src / common / tags.c
index 30a8dbb18682b8194257b16b7f1f973b7ce74144..b9ced957161fd00fb473b16e38c3ed6292cec042 100644 (file)
@@ -150,6 +150,9 @@ void tags_write_tags(void)
 
 gint tags_add_tag(const gchar *tag)
 {
+       if (!tag || !(*tag))
+               return -1;
+
        if (g_hash_table_lookup(tags_reverse_table, tag))
                return -1;