Skip to content

Commit 690f8a9

Browse files
MDEV-35073 Fix -Wmaybe-uninitialized in spider_conn_first_link_idx
Default result to "no eligible servers".
1 parent 12a91b5 commit 690f8a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

storage/spider/spd_conn.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3629,7 +3629,7 @@ int spider_conn_first_link_idx(
36293629
int eligible_link_idx, eligible_links = 0;
36303630
longlong balance_total = 0, balance_threshold;
36313631
double rand_val;
3632-
int *link_idxs, result;
3632+
int *link_idxs, result= -1;
36333633
DBUG_ENTER("spider_conn_first_link_idx");
36343634
char *ptr;
36353635
/* Allocate memory for link_idxs */

0 commit comments

Comments
 (0)