summaryrefslogtreecommitdiffstats
path: root/core/datatrak.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2019-05-15 07:42:14 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-05-15 07:42:14 -0700
commit2feedf46fa86c19095a9f302d1d7a44d3416384d (patch)
treec5555f630309bc6808acbf7b3957346e745dcb65 /core/datatrak.c
parent1bdf00b2b472078a0b24f1c269782d822cb96e02 (diff)
downloadsubsurface-2feedf46fa86c19095a9f302d1d7a44d3416384d.tar.gz
Cleanup: small coding style fixes
And addressing a cut and paste error in a comment. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/datatrak.c')
-rw-r--r--core/datatrak.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/datatrak.c b/core/datatrak.c
index 553f0da05..5e806f08f 100644
--- a/core/datatrak.c
+++ b/core/datatrak.c
@@ -65,9 +65,9 @@ static char *to_utf8(unsigned char *in_string)
char *out_string = calloc(outlen, 1);
for (i = 0; i < inlen; i++) {
- if (in_string[i] < 127)
+ if (in_string[i] < 127) {
out_string[j] = in_string[i];
- else {
+ } else {
if (in_string[i] > 127 && in_string[i] <= 173)
in_string[i] = to_8859(in_string[i]);
out_string[j] = (in_string[i] >> 6) | 0xC0;