[Libguestfs] [PATCH 09/67] fish: options: Fix optarg -> arg.

Richard W.M. Jones rjones at redhat.com
Sat Aug 24 11:04:09 UTC 2013


From: "Richard W.M. Jones" <rjones at redhat.com>

Don't read the global variable optarg.  Read arg instead.
(In all cases they are the same, so this bug made no difference).

(cherry picked from commit 671be806ae79df5d0a9e864d2f9b3461d08c7733)
---
 fish/options.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fish/options.c b/fish/options.c
index 787402c..5c55b38 100644
--- a/fish/options.c
+++ b/fish/options.c
@@ -61,7 +61,7 @@ option_a (const char *arg, const char *format, struct drv **drvsp)
 
     drv->type = drv_a;
     drv->nr_drives = -1;
-    drv->a.filename = optarg;
+    drv->a.filename = (char *) arg;
     drv->a.format = format;
   }
 
-- 
1.8.3.1




More information about the Libguestfs mailing list