Author: pjd Date: Tue Dec 3 13:28:05 2013 New Revision: 258867 URL: http://svnweb.freebsd.org/changeset/base/258867
Log: Initialize cookie before use. Reported by: Coverity Coverity CID: 1135292 Modified: head/sbin/casperd/casperd.c Modified: head/sbin/casperd/casperd.c ============================================================================== --- head/sbin/casperd/casperd.c Tue Dec 3 13:26:37 2013 (r258866) +++ head/sbin/casperd/casperd.c Tue Dec 3 13:28:05 2013 (r258867) @@ -206,6 +206,7 @@ casper_limit(const nvlist_t *oldlimits, int type; void *cookie; + cookie = NULL; while ((name = nvlist_next(newlimits, &type, &cookie)) != NULL) { if (type != NV_TYPE_NULL) return (EINVAL); _______________________________________________ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"