aboutsummaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorPawel Jakub Dawidek <pjd@FreeBSD.org>2005-04-07 06:46:11 +0000
committerPawel Jakub Dawidek <pjd@FreeBSD.org>2005-04-07 06:46:11 +0000
commit53767efdcefb81246f9d554010ffb84c0fa81050 (patch)
treee6d6e8278246597d5e4d846b96c927777e9ee8ca /sbin
parent62a2d99ce5879a823a3acb41d0be644fc3060f98 (diff)
Notes
Diffstat (limited to 'sbin')
-rw-r--r--sbin/geom/core/geom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/geom/core/geom.c b/sbin/geom/core/geom.c
index c25157c538da..1d6691ad635a 100644
--- a/sbin/geom/core/geom.c
+++ b/sbin/geom/core/geom.c
@@ -436,7 +436,7 @@ run_command(int argc, char *argv[])
gctl_rw_param(req, "output", sizeof(buf), buf);
errstr = gctl_issue(req);
}
- if (errstr != NULL) {
+ if (errstr != NULL && errstr[0] != '\0') {
fprintf(stderr, "%s\n", errstr);
if (strncmp(errstr, "warning: ", strlen("warning: ")) != 0) {
gctl_free(req);