Empty error buffer is not an error.
MFC after: 3 weeks
This commit is contained in:
parent
62a2d99ce5
commit
53767efdce
@ -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