summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
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 c25157c..1d6691a 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);
OpenPOWER on IntegriCloud