Fix reversed logic in when to append "/" to path in previous commit.
authorBen Pfaff <blp@gnu.org>
Fri, 17 Jul 2009 03:58:51 +0000 (20:58 -0700)
committerBen Pfaff <blp@gnu.org>
Fri, 17 Jul 2009 03:59:20 +0000 (20:59 -0700)
src/data/file-name.c

index 642947cbc5e8e30c7da153b83400a3fe824685e9..6be5ef0afa468b2705de8b95e88e328d8afca5c5 100644 (file)
@@ -489,7 +489,7 @@ default_output_path (void)
          only if there isn't already one there, because Windows
          treats // specially. */
       if (home_dir[0] == '\0'
-          || strchr ("/\\", home_dir[strlen (home_dir) - 1]) != NULL)
+          || strchr ("/\\", home_dir[strlen (home_dir) - 1]) == NULL)
         path = xasprintf ("%s%c", home_dir, '/');
       else
         path = xstrdup (home_dir);