summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2005-04-07 06:46:11 +0000
committerpjd <pjd@FreeBSD.org>2005-04-07 06:46:11 +0000
commit3035fc244ca7ec00c84a7ab1bf5cdc48fba91b91 (patch)
treee6d6e8278246597d5e4d846b96c927777e9ee8ca /sbin
parent22b6b1a4cfc84b33797eb55466afb863d4dc8b82 (diff)
downloadFreeBSD-src-3035fc244ca7ec00c84a7ab1bf5cdc48fba91b91.zip
FreeBSD-src-3035fc244ca7ec00c84a7ab1bf5cdc48fba91b91.tar.gz
Empty error buffer is not an error.
MFC after: 3 weeks
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