aboutsummaryrefslogtreecommitdiffstats
path: root/src
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 /src
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
Diffstat (limited to 'src')
-rw-r--r--src/blogc/main.c2
1 files changed, 1 insertions, 1 deletions
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';