X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/deaa7bace2025f1485a265e036b3542f1fbe2701..399c9c7a72b711ca63f2e2bcc07abfe994906aaa:/instrument-functions.c diff --git a/instrument-functions.c b/instrument-functions.c index 5c546125..a8e07d9d 100644 --- a/instrument-functions.c +++ b/instrument-functions.c @@ -89,7 +89,7 @@ static void print_debug(void *this_fn, void *call_site, action_type action) static int print_only_global; symbol_info syminfo; struct stat statbuf; - int i, found; + int i; if (!stat(ND_FILE_FLAG_OFF, &statbuf)) return; @@ -143,6 +143,8 @@ static void print_debug(void *this_fn, void *call_site, action_type action) } if (print_only_global) { + int found; + i = 0; found = 0; while (i < symcount && !found) {