|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
From e926f6475d2f7063f8190076a0dc9ff7ecb227c8 Mon Sep 17 00:00:00 2001
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
From: Thomas Hindoe Paaboel Andersen <phomes@gmail.com>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
Date: Thu, 11 Sep 2014 21:29:59 +0200
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
Subject: [PATCH] firstboot: silence a warning
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
No change in behavoir as the fallthrough from ARG_COPY had already
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
set arg_copy_locale to true.
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
Found with coverity. Fixes: CID#1237622
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
---
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
src/firstboot/firstboot.c | 1 +
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
1 file changed, 1 insertion(+)
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
diff --git a/src/firstboot/firstboot.c b/src/firstboot/firstboot.c
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
index fd73adbac8..215c059ee2 100644
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
--- a/src/firstboot/firstboot.c
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+++ b/src/firstboot/firstboot.c
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
@@ -856,6 +856,7 @@ static int parse_argv(int argc, char *argv[]) {
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
case ARG_COPY:
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
arg_copy_locale = arg_copy_timezone = arg_copy_root_password = true;
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ break;
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
case ARG_COPY_LOCALE:
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
arg_copy_locale = true;
|