From: Richard W.M. Jones Date: Wed, 24 Jun 2009 08:56:34 +0000 (+0100) Subject: Incorrect assignment on glob error path. X-Git-Tag: 1.0.52~5 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=94a49c8207277ec4017a0fb9a3cd8f1e61a518f6;p=libguestfs.git Incorrect assignment on glob error path. --- 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]++;