mirror of
https://github.com/ceph/ceph
synced 2025-02-20 17:37:29 +00:00
librbd: fix uninit var new_snap in ictrx_refresh()
Valgrind picked this up: ==22755== Conditional jump or move depends on uninitialised value(s) ==22755== at 0x4EC2A11: librbd::ictx_refresh(librbd::ImageCtx*) (internal.cc:1384) ==22755== by 0x4EC10F7: librbd::ictx_check(librbd::ImageCtx*) (internal.cc:1212) ==22755== by 0x4EBD246: librbd::info(librbd::ImageCtx*, rbd_image_info_t&, unsigned long) (internal.cc:841) ==22755== by 0x4E9D71A: rbd_stat (librbd.cc:584) ==22755== by 0x4039A5: check_trunc_hack (fsx.c:477) ==22755== by 0x4060FA: main (fsx.c:1508) Signed-off-by: Sage Weil <sage@inktank.com>
This commit is contained in:
parent
cfd0d4f5aa
commit
7f4851c48e
@ -1246,7 +1246,7 @@ namespace librbd {
|
||||
|
||||
int r;
|
||||
::SnapContext new_snapc;
|
||||
bool new_snap;
|
||||
bool new_snap = false;
|
||||
vector<string> snap_names;
|
||||
vector<uint64_t> snap_sizes;
|
||||
vector<uint64_t> snap_features;
|
||||
|
Loading…
Reference in New Issue
Block a user