Date: Tue, 3 Dec 2013 13:28:06 +0000 (UTC) From: Pawel Jakub Dawidek <pjd@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r258867 - head/sbin/casperd Message-ID: <201312031328.rB3DS6s7030969@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312031328.rB3DS6s7030969>