]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
* src/virsh.c: initialize a couple of variable to avoid warnings
authorDaniel Veillard <veillard@redhat.com>
Thu, 8 Nov 2007 18:07:02 +0000 (18:07 +0000)
committerDaniel Veillard <veillard@redhat.com>
Thu, 8 Nov 2007 18:07:02 +0000 (18:07 +0000)
  when compiling with Fedora.
Daniel

ChangeLog
src/virsh.c

index b299e943c08e1048dfe184cc260b45438505d739..c316d17b2707f95b34bd7a5ad74e8e5de682f9a2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Thu Nov  8 19:06:13 CET 2007 Daniel Veillard <veillard@redhat.com>
+
+       * 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 <veillard@redhat.com>
 
        * src/virsh.c: patch from Jim Meyering to use gcc's printf attribute.
index 5e0cfb88b4dadfb8b01f7ff2e80c9422954be6bb..5327a281bd8421b0743ff7fbd180026ec82e1127 100644 (file)
@@ -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;