Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/bioctl Skip vendor if the string is empty.
details: https://anonhg.NetBSD.org/src/rev/d2092ef7516b
branches: trunk
changeset: 333715:d2092ef7516b
user: joerg <joerg%NetBSD.org@localhost>
date: Sat Nov 15 01:52:01 2014 +0000
description:
Skip vendor if the string is empty.
diffstat:
sbin/bioctl/bioctl.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r dcb8e3e2f715 -r d2092ef7516b sbin/bioctl/bioctl.c
--- a/sbin/bioctl/bioctl.c Sat Nov 15 01:24:53 2014 +0000
+++ b/sbin/bioctl/bioctl.c Sat Nov 15 01:52:01 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bioctl.c,v 1.15 2011/08/29 14:34:58 joerg Exp $ */
+/* $NetBSD: bioctl.c,v 1.16 2014/11/15 01:52:01 joerg Exp $ */
/* $OpenBSD: bioctl.c,v 1.52 2007/03/20 15:26:06 jmc Exp $ */
/*
@@ -31,7 +31,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: bioctl.c,v 1.15 2011/08/29 14:34:58 joerg Exp $");
+__RCSID("$NetBSD: bioctl.c,v 1.16 2014/11/15 01:52:01 joerg Exp $");
#endif
#include <sys/types.h>
@@ -292,7 +292,7 @@
}
snprintf(bt->volname, sizeof(bt->volname), "%u", bv.bv_volid);
- if (bv.bv_vendor)
+ if (bv.bv_vendor[0])
snprintf(tmp, sizeof(tmp), "%s %s", bv.bv_dev, bv.bv_vendor);
else
snprintf(tmp, sizeof(tmp), "%s", bv.bv_dev);
Home |
Main Index |
Thread Index |
Old Index