diff options
author | Sami Kerola | 2019-02-09 10:34:52 +0100 |
---|---|---|
committer | Karel Zak | 2019-02-18 13:19:24 +0100 |
commit | 4813a5210f6fb979d8f7a592f71a2f9c4d3db179 (patch) | |
tree | 90f4aafc604b9a676c0f614281076d8ab52686da /sys-utils/setarch.c | |
parent | cal: fix Sexit and Senter (diff) | |
download | kernel-qcow2-util-linux-4813a5210f6fb979d8f7a592f71a2f9c4d3db179.tar.gz kernel-qcow2-util-linux-4813a5210f6fb979d8f7a592f71a2f9c4d3db179.tar.xz kernel-qcow2-util-linux-4813a5210f6fb979d8f7a592f71a2f9c4d3db179.zip |
various: fix 'uninitialized when used' warnings [clang]
This change fixes "warning: variable 'var' may be uninitialized when used
here [-Wconditional-uninitialized]" warnings reported in various files.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'sys-utils/setarch.c')
-rw-r--r-- | sys-utils/setarch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-utils/setarch.c b/sys-utils/setarch.c index 703c36d86..31016f7f1 100644 --- a/sys-utils/setarch.c +++ b/sys-utils/setarch.c @@ -266,7 +266,7 @@ int main(int argc, char *argv[]) int verbose = 0; int archwrapper; int c; - struct arch_domain *doms, *target; + struct arch_domain *doms, *target = NULL; unsigned long pers_value = 0; char *shell = NULL, *shell_arg = NULL; |