Navigation Menu

Skip to content

Commit

Permalink
[ipv6] Fix uninitialised-variable warning
Browse files Browse the repository at this point in the history
Fix uninitialised-variable warning reported by gcc 4.5.2.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
  • Loading branch information
mcb30 committed Sep 3, 2013
1 parent f7f3087 commit 8aaa48b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/net/ndp.c
Expand Up @@ -352,6 +352,9 @@ static int ndp_rx ( struct io_buffer *iobuf,
remaining -= option_len;
}

/* Success */
rc = 0;

done:
free_iob ( iobuf );
return rc;
Expand Down

0 comments on commit 8aaa48b

Please sign in to comment.