1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-14 10:09:48 +00:00

Empty error buffer is not an error.

MFC after:	3 weeks
This commit is contained in:
Pawel Jakub Dawidek 2005-04-07 06:46:11 +00:00
parent 62a2d99ce5
commit 53767efdce
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=144737

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