]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rbdtool: fix uninitialized variable
authorYehuda Sadeh <yehuda@hq.newdream.net>
Wed, 30 Jun 2010 05:58:52 +0000 (22:58 -0700)
committerYehuda Sadeh <yehuda@hq.newdream.net>
Wed, 30 Jun 2010 05:58:52 +0000 (22:58 -0700)
src/rbdtool.cc

index c49a827d50aa39bd2e67bee981099b9dc8564ddd..ecf910316bcd42dcea80961ae0929f6e310e3117 100644 (file)
@@ -179,7 +179,7 @@ static int read_header(pool_t pool, string& md_oid, bufferlist& header)
 #define READ_SIZE 4096
   do {
     bufferlist bl;
-    int r = rados.read(pool, md_oid, 0, bl, READ_SIZE);
+    r = rados.read(pool, md_oid, 0, bl, READ_SIZE);
     if (r < 0)
       return r;
     header.claim_append(bl);