summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libdiskfs/opts-set.c3
1 files changed, 2 insertions, 1 deletions
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;
}