Red Hat Bugzilla – Bug 143593
local variable used before set
Last modified: 2007-11-30 17:10:57 EST
Description of problem:
I just tried to compile package iprutils-2.0.13-1 from
Redhat Fedora development tree.
The compiler said
iprconfig.c(6786): remark #592: variable "menu_index" is used before
its value is set
The source code is
rc = display_menu(menu_item, start_row, menu_index, &retptr);
I agree with the compiler. Suggest init menu_index before first use.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Created attachment 109151 [details]
Initialize variable before use
Patch against iprutils 220.127.116.11 to fix the bug.
Created attachment 109152 [details]
src rpm of the fixed iprutils package
Here is a src rpm of the fix as well.
Thanks for that, imported here.