From owner-cvs-src-old@FreeBSD.ORG Fri Dec 19 06:48:09 2008 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 935DC1065670 for ; Fri, 19 Dec 2008 06:48:09 +0000 (UTC) (envelope-from marcus@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 81D888FC1B for ; Fri, 19 Dec 2008 06:48:09 +0000 (UTC) (envelope-from marcus@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id mBJ6m9AH053751 for ; Fri, 19 Dec 2008 06:48:09 GMT (envelope-from marcus@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id mBJ6m9Zr053750 for cvs-src-old@freebsd.org; Fri, 19 Dec 2008 06:48:09 GMT (envelope-from marcus@repoman.freebsd.org) Message-Id: <200812190648.mBJ6m9Zr053750@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to marcus@repoman.freebsd.org using -f From: Joe Marcus Clarke Date: Fri, 19 Dec 2008 06:47:59 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/lib/libutil kinfo_getfile.c kinfo_getvmmap.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Dec 2008 06:48:09 -0000 marcus 2008-12-19 06:47:59 UTC FreeBSD src repository Modified files: lib/libutil kinfo_getfile.c kinfo_getvmmap.c Log: SVN rev 186314 on 2008-12-19 06:47:59Z by marcus Initialize the cntp pointer to 0 prior to doing any work so that callers don't try to iterate through garbage or NULL memory. Additionally, return NULL instead of 0 on error. Reviewed by: peter Approved by: peter Revision Changes Path 1.3 +5 -4 src/lib/libutil/kinfo_getfile.c 1.3 +5 -4 src/lib/libutil/kinfo_getvmmap.c