commit 181fd6674348902df2c4c36534e55a3403d0eabe
parent 588972ba93f716c0027b2a0806ce40c25578144d
Author: sin <sin@2f30.org>
Date: Thu, 17 Dec 2015 13:09:57 +0000
Style fix
Diffstat:
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/util.c b/util.c
@@ -136,10 +136,8 @@ urlencode(char *s)
bp = buf = emalloc(strlen(s) * 3 + 1);
while (*p) {
- if (*p == '-' ||
- *p == '_' ||
- *p == '.' ||
- *p == '~' ||
+ if (*p == '-' || *p == '_' ||
+ *p == '.' || *p == '~' ||
isalnum(*p)) {
*bp++ = *p;
} else if (*p == ' ') {