aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2016-10-15 03:52:00 +0200
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2016-10-15 03:52:00 +0200
commita0c955e7f8235feeef1ec7bac14fb29d7058920e (patch)
tree1f317bb3092269ff5c900b46f7b90c9376352ed5
parent60723d736a361909b044ade5fda47283d30f020c (diff)
downloadblogc-a0c955e7f8235feeef1ec7bac14fb29d7058920e.tar.gz
blogc-a0c955e7f8235feeef1ec7bac14fb29d7058920e.tar.bz2
blogc-a0c955e7f8235feeef1ec7bac14fb29d7058920e.zip
blogc: added more parenthesis to make gcc happy. trying to fix travis
-rwxr-xr-xbuild-aux/travis-build.sh2
-rw-r--r--src/blogc/main.c2
2 files changed, 3 insertions, 1 deletions
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';