From owner-cvs-all@FreeBSD.ORG Sat Apr 19 20:35:05 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1D66137B401; Sat, 19 Apr 2003 20:35:05 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 63BC043FBD; Sat, 19 Apr 2003 20:34:59 -0700 (PDT) (envelope-from imp@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h3K3Yx0U046837; Sat, 19 Apr 2003 20:34:59 -0700 (PDT) (envelope-from imp@repoman.freebsd.org) Received: (from imp@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h3K3Yxke046836; Sat, 19 Apr 2003 20:34:59 -0700 (PDT) Message-Id: <200304200334.h3K3Yxke046836@repoman.freebsd.org> From: Warner Losh Date: Sat, 19 Apr 2003 20:34:59 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/usr.sbin/raycontrol raycontrol.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Apr 2003 03:35:05 -0000 imp 2003/04/19 20:34:59 PDT FreeBSD src repository Modified files: usr.sbin/raycontrol raycontrol.c Log: Don't dereference a NULL pointer when we don't have a ':' in the optarg of the -W option. Instead, do the next best thing and give a usage message. Reported by: kris Revision Changes Path 1.5 +2 -0 src/usr.sbin/raycontrol/raycontrol.c