Skip to content

Commit 59ed5ab

Browse files
Shan Weidavem330
authored andcommitted
sctp: fix compile warnings in sctp_tsnmap_num_gabs
net/sctp/tsnmap.c: In function ‘sctp_tsnmap_num_gabs’: net/sctp/tsnmap.c:347: warning: ‘start’ may be used uninitialized in this function net/sctp/tsnmap.c:347: warning: ‘end’ may be used uninitialized in this function Signed-off-by: Shan Wei <shanwei@cn.fujitsu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 089c348 commit 59ed5ab

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎net/sctp/tsnmap.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ __u16 sctp_tsnmap_num_gabs(struct sctp_tsnmap *map,
344344

345345
/* Refresh the gap ack information. */
346346
if (sctp_tsnmap_has_gap(map)) {
347-
__u16 start, end;
347+
__u16 start = 0, end = 0;
348348
sctp_tsnmap_iter_init(map, &iter);
349349
while (sctp_tsnmap_next_gap_ack(map, &iter,
350350
&start,

0 commit comments

Comments
 (0)