if (!tmp[1])
break;
+ /* concatenate block which was broken up for readability */
if (*(tmp + 1) != '\n') {
*tmp = ' ';
tmp++;
- } else {
- /* Cut off a single reply. */
- *(tmp + 1) = '\0';
+ continue;
+ }
- if (response) {
- if (qemuMonitorTestFullAddItem(ret, fileName, command,
- response, commandln) < 0)
- goto error;
- command = NULL;
- response = NULL;
- }
+ /* Cut off a single reply. */
+ *(tmp + 1) = '\0';
- /* Move the @tmp and @singleReply. */
- tmp += 2;
+ if (response) {
+ if (qemuMonitorTestFullAddItem(ret, fileName, command,
+ response, commandln) < 0)
+ goto error;
+ command = NULL;
+ response = NULL;
+ }
- if (!command) {
- commandln = line;
- command = tmp;
- } else {
- response = tmp;
- }
+ /* Move the @tmp and @singleReply. */
+ tmp += 2;
+
+ if (!command) {
+ commandln = line;
+ command = tmp;
+ } else {
+ response = tmp;
}
}