aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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';