From: Jim Warner Date: Sat, 29 Aug 2015 05:00:00 +0000 (-0500) Subject: pmap: silence a clang -Wuninitialized variable warning X-Git-Tag: v4.0.0~1059 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0299bd15b0d6f0e8c3524b0383ce0bbcab66c4c5;p=procps-ng pmap: silence a clang -Wuninitialized variable warning Reference(s): pmap.c:618:20: warning: variable 'start' is uninitialized when used here [-Wuninitialized] maxw1, start, ^~~~~ Signed-off-by: Jim Warner --- diff --git a/pmap.c b/pmap.c index 1d2f2e43..713dd7f6 100644 --- a/pmap.c +++ b/pmap.c @@ -588,7 +588,7 @@ static int one_proc(proc_t * p) char perms[32]; /* to clean up unprintables */ char *tmp; - unsigned KLONG start, end; + unsigned KLONG end, start = 0;; unsigned long long file_offset, inode; unsigned dev_major, dev_minor; unsigned long long smap_value;