Using "continue" in a do...while(0) loop is pointless. The original intent
was that the loop would continue to a second iteration in this case.
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20788)
char *cmd_start = buf_start;
cmd_start[outlen] = '\0';
- do {
+ for (;;) {
cmd_start = strstr(cmd_start, "{");
if (cmd_start == buf_start && *(cmd_start + 1) == '{') {
/* The "{" is escaped, so skip it */
outlen--;
continue;
}
- } while(0);
+ break;
+ }
if (cmd_start == buf_start) {
/* Command detected */