Skip to content

Commit 9ff9f78

Browse files
committed
instrument functions: Reduce the scope of a variable
1 parent e9f9fbf commit 9ff9f78

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

instrument-functions.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ static void print_debug(void *this_fn, void *call_site, action_type action)
8989
static int print_only_global;
9090
symbol_info syminfo;
9191
struct stat statbuf;
92-
int i, found;
92+
int i;
9393

9494
if (!stat(ND_FILE_FLAG_OFF, &statbuf))
9595
return;
@@ -143,6 +143,8 @@ static void print_debug(void *this_fn, void *call_site, action_type action)
143143
}
144144

145145
if (print_only_global) {
146+
int found;
147+
146148
i = 0;
147149
found = 0;
148150
while (i < symcount && !found) {

0 commit comments

Comments
 (0)