]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
CrushTester.cc: eliminated old compiler warning of uninitialized pointer.
authorcaleb miles <caselim@gmail.com>
Wed, 13 Jun 2012 14:46:02 +0000 (07:46 -0700)
committercaleb miles <caselim@gmail.com>
Wed, 13 Jun 2012 14:46:02 +0000 (07:46 -0700)
Signed-off-by: caleb miles <caselim@gmail.com>
src/crush/CrushTester.cc

index 5af06ef973721c176337a76484dd1f099859c5ec..e3ecfea570d432d19dc75bfb620bad980230e972 100644 (file)
@@ -368,7 +368,7 @@ int CrushTester::test()
   }
 
   if (output_choose_tries) {
-    __u32 *v;
+    __u32 *v = 0;
     int n = crush.get_choose_profile(&v);
     for (int i=0; i<n; i++) {
       cout.setf(std::ios::right);