diff --git a/ChangeLog b/ChangeLog index b299e943c0..c316d17b27 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Thu Nov 8 19:06:13 CET 2007 Daniel Veillard + + * src/virsh.c: initialize a couple of variable to avoid warnings + when compiling with Fedora. + Thu Nov 8 18:59:39 CET 2007 Daniel Veillard * src/virsh.c: patch from Jim Meyering to use gcc's printf attribute. diff --git a/src/virsh.c b/src/virsh.c index 5e0cfb88b4..5327a281bd 100644 --- a/src/virsh.c +++ b/src/virsh.c @@ -1137,9 +1137,9 @@ cmdSchedinfo(vshControl * ctl, vshCmd * cmd) int nr_inputparams = 0; int inputparams = 0; int weightfound = 0; - int weight; + int weight = 0; int capfound = 0; - int cap; + int cap = 0; char str_weight[] = "weight"; char str_cap[] = "cap"; int ret_val = FALSE;