summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorrlar <rlar>2016-02-28 16:32:59 +0100
committerWill Estes <westes575@gmail.com>2016-02-29 19:06:56 -0500
commitcc7d14899c5780d4a4de4cf05ab1b6b9f911ca0d (patch)
tree0c989f1ace03e7e5705a3996ce2184de5722e2aa /src/main.c
parent860d7cfe15c4afa8ae93a4143bfebcbb10cc1670 (diff)
warning: suggest parentheses around assignment used as truth value [-Wparentheses]
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 9bec0c8..e329e4e 100644
--- a/src/main.c
+++ b/src/main.c
@@ -351,7 +351,7 @@ void check_options (void)
if ( !(m4 = getenv("M4"))) {
char *slash;
m4 = M4;
- if (slash = strrchr(M4, '/')) {
+ if ((slash = strrchr(M4, '/')) != NULL) {
m4 = slash+1;
/* break up $PATH */
const char *path = getenv("PATH");