Module Name: src Committed By: gdt Date: Mon Mar 18 19:31:39 UTC 2013
Modified Files: src/sys/netinet6: ip6_output.c Log Message: Initialize variable used as (conditional) result parameter. ip6_insertfraghdr either sets a result parameter or returns an error. While the caller only uses the result parameter in the non-error case, knowing that requires cross-module static analysis, and that's not robust against distant code changes. Therfore, set ip6f to NULL before the function call that maybe sets it, avoiding a spuruious warning and changing the future possible bug from an unitialized dereference to a NULL deferrence. To generate a diff of this commit: cvs rdiff -u -r1.151 -r1.152 src/sys/netinet6/ip6_output.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.