Empty error buffer is not an error.

MFC after:	3 weeks
This commit is contained in:
pjd 2005-04-07 06:46:11 +00:00
parent 22b6b1a4cf
commit 3035fc244c

View File

@ -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);