Empty error buffer is not an error.
MFC after: 3 weeks
This commit is contained in:
parent
22b6b1a4cf
commit
3035fc244c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user