From 0299bd15b0d6f0e8c3524b0383ce0bbcab66c4c5 Mon Sep 17 00:00:00 2001 From: Jim Warner Date: Sat, 29 Aug 2015 00:00:00 -0500 Subject: [PATCH] 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 --- pmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;