Skip to content

Commit

Permalink
Fix for compiler warning on older gcc versions (4.1.2-42 and 4.4.6-4)
Browse files Browse the repository at this point in the history
introduced by previous "bt -c" patch:

  kernel.c: In function ‘cmd_bt’:
  kernel.c:1981: warning: ‘cpus’ may be used uninitialized in this function
  • Loading branch information
Dave Anderson committed Apr 29, 2014
1 parent 8bff022 commit 566e8e8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kernel.c
Original file line number Diff line number Diff line change
Expand Up @@ -1989,6 +1989,7 @@ cmd_bt(void)
char arg_buf[BUFSIZE];

tc = NULL;
cpus = NULL;
subsequent = active = choose_cpu = 0;
hook.eip = hook.esp = 0;
refptr = 0;
Expand Down

0 comments on commit 566e8e8

Please sign in to comment.