From d0a776ba204dfdb33076b53816cbd7e7f090e637 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sat, 28 Apr 2018 11:53:11 +0100 Subject: [PATCH] [Minor] Fix braces style --- src/libutil/str_util.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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; -- 2.39.5