From: Vsevolod Stakhov Date: Sat, 28 Apr 2018 10:53:11 +0000 (+0100) Subject: [Minor] Fix braces style X-Git-Tag: 1.7.4~25 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d0a776ba204dfdb33076b53816cbd7e7f090e637;p=rspamd.git [Minor] Fix braces style --- diff --git a/src/libutil/str_util.c b/src/libutil/str_util.c index 186ce5d38..6f241b88c 100644 --- a/src/libutil/str_util.c +++ b/src/libutil/str_util.c @@ -1649,9 +1649,9 @@ decode: c = *p++; ret *= 16; - if (c >= '0' && c <= '9') ret += c - '0'; - else if (c >= 'A' && c <= 'F') ret += c - 'A' + 10; - else if (c >= 'a' && c <= 'f') ret += c - 'a' + 10; + if (c >= '0' && c <= '9') { ret += c - '0'; } + else if (c >= 'A' && c <= 'F') { ret += c - 'A' + 10; } + else if (c >= 'a' && c <= 'f') { ret += c - 'a' + 10; } if (end - o > 0) { *o++ = (gchar)ret; @@ -1753,9 +1753,9 @@ decode: c = *p++; ret *= 16; - if (c >= '0' && c <= '9') ret += c - '0'; - else if (c >= 'A' && c <= 'F') ret += c - 'A' + 10; - else if (c >= 'a' && c <= 'f') ret += c - 'a' + 10; + if (c >= '0' && c <= '9') { ret += c - '0'; } + else if (c >= 'A' && c <= 'F') { ret += c - 'A' + 10; } + else if (c >= 'a' && c <= 'f') { ret += c - 'a' + 10; } if (end - o > 0) { *o++ = (gchar)ret;