Fix a logic error introduced in previous commit.
authorAndrej Kacian <ticho@claws-mail.org>
Wed, 1 Jul 2015 19:30:50 +0000 (21:30 +0200)
committerAndrej Kacian <ticho@claws-mail.org>
Wed, 1 Jul 2015 19:30:50 +0000 (21:30 +0200)
src/folder.c

index 06f12cb..081c4b1 100644 (file)
@@ -4816,7 +4816,7 @@ gint folder_item_search_msgs_local        (Folder                 *folder,
 gboolean folder_local_name_ok(const gchar *name)
 {
 #ifdef G_OS_WIN32
 gboolean folder_local_name_ok(const gchar *name)
 {
 #ifdef G_OS_WIN32
-       if (name[0] == '.' || new_folder[strlen(name) - 1]) {
+       if (name[0] == '.' || new_folder[strlen(name) - 1] == '.') {
                alertpanel_error(_("A folder name cannot begin or end with a dot.");
                return FALSE;
        }
                alertpanel_error(_("A folder name cannot begin or end with a dot.");
                return FALSE;
        }