diff options
author | dufault <dufault@FreeBSD.org> | 1995-05-01 12:54:32 +0000 |
---|---|---|
committer | dufault <dufault@FreeBSD.org> | 1995-05-01 12:54:32 +0000 |
commit | 77ae782956ec79cb24d7ea98180f010677b926d6 (patch) | |
tree | 38cbf2f912eec3ce8eb71f6c22fb8f3e9c5d91fe /sbin/scsi | |
parent | adef302b24877029cb6b82fee7588c4377eb3b08 (diff) | |
download | FreeBSD-src-77ae782956ec79cb24d7ea98180f010677b926d6.zip FreeBSD-src-77ae782956ec79cb24d7ea98180f010677b926d6.tar.gz |
Don't print out zero length names when verbose is set.
Diffstat (limited to 'sbin/scsi')
-rw-r--r-- | sbin/scsi/scsi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/scsi/scsi.c b/sbin/scsi/scsi.c index 45cecea..b96a6ab 100644 --- a/sbin/scsi/scsi.c +++ b/sbin/scsi/scsi.c @@ -39,7 +39,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: scsi.c,v 1.4 1995/04/28 19:24:39 dufault Exp $ + * $Id: scsi.c,v 1.5 1995/05/01 12:35:05 dufault Exp $ */ #include <stdio.h> @@ -194,7 +194,7 @@ int iget(void *hook, char *name) arg = strtol(h->argv[h->got], 0, 0); h->got++; - if (verbose && name) + if (verbose && name && *name) printf("%s: %d\n", name, arg); return arg; |