]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: fix uninitialized variable warnings
authorSage Weil <sage.weil@dreamhost.com>
Wed, 26 Oct 2011 04:34:07 +0000 (21:34 -0700)
committerSage Weil <sage.weil@dreamhost.com>
Wed, 26 Oct 2011 04:34:07 +0000 (21:34 -0700)
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
src/rgw/rgw_rados.cc

index 480564f744be667575ca526bed18942e04d89c5e..d2c235f0115b6c1637039d95add5c9d1d46596c1 100644 (file)
@@ -1780,8 +1780,8 @@ int RGWRados::obj_stat(void *ctx, rgw_obj& obj, uint64_t *psize, time_t *pmtime,
     dout(0) << "iter->first=" << aiter->first << dendl;
   }
 
-  uint64_t size;
-  time_t mtime;
+  uint64_t size = 0;
+  time_t mtime = 0;
   try {
     ::decode(size, oiter);
     utime_t ut;