From 94a49c8207277ec4017a0fb9a3cd8f1e61a518f6 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Wed, 24 Jun 2009 09:56:34 +0100 Subject: [PATCH] Incorrect assignment on glob error path. --- fish/glob.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fish/glob.c b/fish/glob.c index 827e062..f20da84 100644 --- a/fish/glob.c +++ b/fish/glob.c @@ -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]++; -- 1.8.3.1