From 12c0b2647633807e44447f754e1e9bddf277fa4b Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Mon, 22 May 1995 19:09:06 +0000 Subject: (diskfs_set_options): Don't fall through to the error case from the 's' one! Use ARG instead of the global OPTARG. --- libdiskfs/opts-set.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libdiskfs') diff --git a/libdiskfs/opts-set.c b/libdiskfs/opts-set.c index 77929e7e..9de9a3bb 100644 --- a/libdiskfs/opts-set.c +++ b/libdiskfs/opts-set.c @@ -49,10 +49,11 @@ diskfs_set_options (int argc, char **argv) case 'n': sync_interval = 0; sync = 0; break; case 's': - if (optarg) + if (arg) sync_interval = atoi (arg); else sync = 1; + break; default: return EINVAL; } -- cgit v1.2.3