[diag] clear output in case no output given (#5465)

The stop command doesn't write anything to the output buffer.
This commit is contained in:
Yakun Xu
2020-08-26 23:02:37 -07:00
committed by GitHub
parent dc133baa68
commit 70ddb40519
+1 -1
View File
@@ -535,7 +535,7 @@ exit:
switch (error)
{
case OT_ERROR_NONE:
aOutput[0] = '\0'; // In case there is no output.
IgnoreError(ProcessCmd(argCount, &aArgsector[0], aOutput, aOutputMaxLen));
break;