From: Ben Pfaff Date: Fri, 17 Jul 2009 03:58:51 +0000 (-0700) Subject: Fix reversed logic in when to append "/" to path in previous commit. X-Git-Tag: v0.6.2-pre5~1 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=753a10715505febc38abbbc72ed5ed5172eb4266;p=pspp-builds.git Fix reversed logic in when to append "/" to path in previous commit. --- diff --git a/src/data/file-name.c b/src/data/file-name.c index 642947cb..6be5ef0a 100644 --- a/src/data/file-name.c +++ b/src/data/file-name.c @@ -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);