Incorrect assignment on glob error path.
authorRichard W.M. Jones <rjones@redhat.com>
Wed, 24 Jun 2009 08:56:34 +0000 (09:56 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Wed, 24 Jun 2009 08:56:34 +0000 (09:56 +0100)
fish/glob.c

index 827e062..f20da84 100644 (file)
@@ -148,7 +148,7 @@ glob_issue (char *cmd, int argc,
   printf ("\n");
 
   if (issue_command (argv[0], &argv[1]) == -1)
-    r = -1;                    /* ... but don't exit */
+    *r = -1;                   /* ... but don't exit */
 
   for (i = argc-1; i >= 1; --i) {
     posn[i]++;