- Fixes the following compiler warnings (MSVC):
rrd_modify.c(439) : warning C4700: uninitialized local variable
'junk' used
rrd_modify.c(1027) : warning C4700: uninitialized local variable
'junk' used
int i, ri;
candidate_extra_t junk;
-
+ junk.l = 0; /* Initialize junk.l to avoid warning C4700 in MSVC */
+
candidates = find_candidate_rras(in_rrd, new_rra, &candidates_cnt, junk, select_for_modify);
if (candidates == NULL) {
goto done;
candidate_t *candidates = NULL;
candidate_t *chosen_candidate = NULL;
candidate_extra_t junk;
-
+ junk.l = 0;
+
candidates = find_candidate_rras(in, rra_def, &candidates_cnt, junk, select_for_modify);
if (candidates != NULL) {