Commit 25577cd
committed
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 <[email protected]>1 parent 8afc88c commit 25577cd
1 file changed
+8
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2609 | 2609 | | |
2610 | 2610 | | |
2611 | 2611 | | |
2612 | | - | |
2613 | | - | |
2614 | | - | |
2615 | | - | |
| 2612 | + | |
| 2613 | + | |
| 2614 | + | |
| 2615 | + | |
2616 | 2616 | | |
2617 | 2617 | | |
2618 | 2618 | | |
| |||
2649 | 2649 | | |
2650 | 2650 | | |
2651 | 2651 | | |
2652 | | - | |
2653 | | - | |
2654 | | - | |
2655 | | - | |
| 2652 | + | |
| 2653 | + | |
| 2654 | + | |
| 2655 | + | |
2656 | 2656 | | |
2657 | 2657 | | |
2658 | 2658 | | |
| |||
0 commit comments