Empty error buffer is not an error.
MFC after: 3 weeks
This commit is contained in:
parent
62a2d99ce5
commit
53767efdce
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=144737
@ -436,7 +436,7 @@ run_command(int argc, char *argv[])
|
|||||||
gctl_rw_param(req, "output", sizeof(buf), buf);
|
gctl_rw_param(req, "output", sizeof(buf), buf);
|
||||||
errstr = gctl_issue(req);
|
errstr = gctl_issue(req);
|
||||||
}
|
}
|
||||||
if (errstr != NULL) {
|
if (errstr != NULL && errstr[0] != '\0') {
|
||||||
fprintf(stderr, "%s\n", errstr);
|
fprintf(stderr, "%s\n", errstr);
|
||||||
if (strncmp(errstr, "warning: ", strlen("warning: ")) != 0) {
|
if (strncmp(errstr, "warning: ", strlen("warning: ")) != 0) {
|
||||||
gctl_free(req);
|
gctl_free(req);
|
||||||
|
Loading…
Reference in New Issue
Block a user