Skip to content
Snippets Groups Projects
Commit 98f0d284 authored by Michael Tüxen's avatar Michael Tüxen
Browse files

Silence compiler warning on NetBSD.

parent fc60c582
No related branches found
No related tags found
No related merge requests found
...@@ -2628,6 +2628,7 @@ sctp_missing_mandatory_parameter_cause_new(struct sctp_parameter_type_list *list ...@@ -2628,6 +2628,7 @@ sctp_missing_mandatory_parameter_cause_new(struct sctp_parameter_type_list *list
assert((i == list->nr_entries) && (item == NULL)); assert((i == list->nr_entries) && (item == NULL));
} else { } else {
cause->nr_parameters = htonl(0); cause->nr_parameters = htonl(0);
i = 0; /* Just to make the compiler on NetBSD happy. */
} }
if (padding_length == 2) { if (padding_length == 2) {
cause->parameter_type[i] = htons(0); cause->parameter_type[i] = htons(0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment