Commit d468c60f authored by Mike Hibler's avatar Mike Hibler
Browse files

Avoid redundent output in hwinfo command.

parent 636e6436
......@@ -11071,8 +11071,10 @@ COMMAND_PROTOTYPE(dohwinfo)
nrows--;
}
client_writeback(sock, buf, strlen(buf), tcp);
bufp = buf;
if (bufp != buf) {
client_writeback(sock, buf, strlen(buf), tcp);
bufp = buf;
}
mysql_free_result(res);
/*
......@@ -11110,7 +11112,8 @@ COMMAND_PROTOTYPE(dohwinfo)
nrows--;
}
client_writeback(sock, buf, strlen(buf), tcp);
if (bufp != buf)
client_writeback(sock, buf, strlen(buf), tcp);
mysql_free_result(res);
return 0;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment