From a0c955e7f8235feeef1ec7bac14fb29d7058920e Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Sat, 15 Oct 2016 03:52:00 +0200 Subject: blogc: added more parenthesis to make gcc happy. trying to fix travis --- build-aux/travis-build.sh | 2 ++ src/blogc/main.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/build-aux/travis-build.sh b/build-aux/travis-build.sh index 53cf589..27e15f7 100755 --- a/build-aux/travis-build.sh +++ b/build-aux/travis-build.sh @@ -5,6 +5,8 @@ set -ex rm -rf build mkdir -p build +build-aux/git-version-gen .tarball-version + pushd build > /dev/null ../configure \ diff --git a/src/blogc/main.c b/src/blogc/main.c index 8377ea5..49b8656 100644 --- a/src/blogc/main.c +++ b/src/blogc/main.c @@ -115,7 +115,7 @@ blogc_read_stdin_to_list(bc_slist_t *l) continue; if (buffer[0] == '#') continue; - if (len >= 2 && (buffer[len - 2] == '\r') || (buffer[len - 2] == '\n')) + if (len >= 2 && ((buffer[len - 2] == '\r') || (buffer[len - 2] == '\n'))) buffer[len - 2] = '\0'; if ((buffer[len - 1] == '\r') || (buffer[len - 1] == '\n')) buffer[len - 1] = '\0'; -- cgit v1.2.3-18-g5258