fish: options: Fix optarg -> arg.

Don't read the global variable optarg.  Read arg instead.
(In all cases they are the same, so this bug made no difference).
This commit is contained in:
Richard W.M. Jones
2013-07-30 12:22:08 +01:00
parent a3891430bc
commit 671be806ae

View File

@@ -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;
}