]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw/lc: initialize variables passed to sscanf()
authorCasey Bodley <cbodley@redhat.com>
Wed, 17 Sep 2025 17:30:22 +0000 (13:30 -0400)
committerCasey Bodley <cbodley@redhat.com>
Wed, 17 Sep 2025 17:30:24 +0000 (13:30 -0400)
commit25577cd3b0ef9b16f8c8e38334d0ee023967df66
tree9fc30ff0c6c64e1fb032956ee12ebae5ac587afa
parent8afc88cf41fe04c0084daa8e27da51bdcfb9fc2c
rgw/lc: initialize variables passed to sscanf()

we're not checking the return value of sscanf(), which says how many of
the expected values it successfully parsed. given an invalid
rgw_lifecycle_work_time string, any unparsed values would remain
uninitialized - so preinitialize them with reasonable defaults

Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_lc.cc