Date: Fri, 11 Dec 2015 21:11:02 +0000 (UTC) From: Baptiste Daroussin <bapt@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r292122 - head/usr.sbin/sesutil Message-ID: <201512112111.tBBLB2wj005027@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: bapt Date: Fri Dec 11 21:11:02 2015 New Revision: 292122 URL: https://svnweb.freebsd.org/changeset/base/292122 Log: Fix sesutil locate when a sesid is passed to locate command Modified: head/usr.sbin/sesutil/sesutil.c Modified: head/usr.sbin/sesutil/sesutil.c ============================================================================== --- head/usr.sbin/sesutil/sesutil.c Fri Dec 11 20:45:39 2015 (r292121) +++ head/usr.sbin/sesutil/sesutil.c Fri Dec 11 21:11:02 2015 (r292122) @@ -172,7 +172,7 @@ sesled(int argc, char **argv, bool setfa sesid = strtoul(disk, &endptr, 10); if (*endptr == '\0') { endptr = strrchr(uflag, '*'); - if (*endptr == '*') { + if (endptr != NULL && *endptr == '*') { warnx("Must specifying a SES device (-u) to use a SES " "id# to identify a disk"); usage(stderr, (setfault ? "fault" : "locate"));
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201512112111.tBBLB2wj005027>