cpstripped: Add braces to make code more legible.
authorc_14 <git@c-14.de>
Tue, 16 May 2017 16:13:52 +0000 (18:13 +0200)
committerPhilipp Takacs <philipp@bureaucracy.de>
Thu, 15 Jun 2017 19:57:46 +0000 (21:57 +0200)
sbr/fmt_scan.c

index d0b112b..ca7f5e8 100644 (file)
@@ -230,15 +230,16 @@ cpstripped(char **start, char *end, char *str)
                }
        }
 #else
                }
        }
 #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;
                        *(*start)++ = c;
-               else {
+               } else {
                        while ((c = (unsigned char) *s) &&
                                        (iscntrl(c) || isspace(c)))
                                s++;
                        *(*start)++ = ' ';
                }
                        while ((c = (unsigned char) *s) &&
                                        (iscntrl(c) || isspace(c)))
                                s++;
                        *(*start)++ = ' ';
                }
+       }
 #endif
 }
 
 #endif
 }