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 <james.warner@comcast.net>
This commit is contained in:
Jim Warner 2015-08-29 00:00:00 -05:00 committed by Craig Small
parent 8072b6aa84
commit 0299bd15b0

2
pmap.c
View File

@ -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;