chiark / gitweb /
firstboot: silence a warning
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Thu, 11 Sep 2014 19:29:59 +0000 (21:29 +0200)
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Thu, 11 Sep 2014 19:29:59 +0000 (21:29 +0200)
No change in behavoir as the fallthrough from ARG_COPY had already
set arg_copy_locale to true.

Found with coverity. Fixes: CID#1237622

src/firstboot/firstboot.c

index fd73adbac8dff21db2359d8dc1c7fb35c3dbc87a..215c059ee201cd1759b913ebbc8612cd2db772c8 100644 (file)
@@ -856,6 +856,7 @@ static int parse_argv(int argc, char *argv[]) {
 
                 case ARG_COPY:
                         arg_copy_locale = arg_copy_timezone = arg_copy_root_password = true;
 
                 case ARG_COPY:
                         arg_copy_locale = arg_copy_timezone = arg_copy_root_password = true;
+                        break;
 
                 case ARG_COPY_LOCALE:
                         arg_copy_locale = true;
 
                 case ARG_COPY_LOCALE:
                         arg_copy_locale = true;