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/readprofile.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/readprofile.c')
-rw-r--r-- | sys-utils/readprofile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-utils/readprofile.c b/sys-utils/readprofile.c index 75a623bc9..ca0037529 100644 --- a/sys-utils/readprofile.c +++ b/sys-utils/readprofile.c @@ -136,7 +136,7 @@ int main(int argc, char **argv) unsigned long long add0 = 0; unsigned int step; unsigned int *buf, total, fn_len; - unsigned long long fn_add, next_add; /* current and next address */ + unsigned long long fn_add = 0, next_add; /* current and next address */ char fn_name[S_LEN], next_name[S_LEN]; /* current and next name */ char mode[8]; int c; |