From: c_14 Date: Tue, 16 May 2017 16:13:52 +0000 (+0200) Subject: cpstripped: Add braces to make code more legible. X-Git-Tag: mmh-0.4~35 X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=b600ac49b9dd3fe3938e6a7618d4b75f30e5b636;p=mmh cpstripped: Add braces to make code more legible. --- diff --git a/sbr/fmt_scan.c b/sbr/fmt_scan.c index d0b112b..ca7f5e8 100644 --- a/sbr/fmt_scan.c +++ b/sbr/fmt_scan.c @@ -230,15 +230,16 @@ cpstripped(char **start, char *end, char *str) } } #else - while((c = (unsigned char) *s++) && *start < end) - if (!iscntrl(c) && !isspace(c)) + while((c = (unsigned char) *s++) && *start < end) { + if (!iscntrl(c) && !isspace(c)) { *(*start)++ = c; - else { + } else { while ((c = (unsigned char) *s) && (iscntrl(c) || isspace(c))) s++; *(*start)++ = ' '; } + } #endif }