summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArun Prakash Jana <engineerarun@gmail.com>2021-11-19 22:34:07 +0530
committerArun Prakash Jana <engineerarun@gmail.com>2021-11-19 22:34:07 +0530
commit3e29f82c5e10cd625a88d2ef931091ca6b2eaa6c (patch)
tree31b70b9adcd2cec5ccb12d327e30cf1e43951254
parentd643a1d9e0b8cf3a21f2e5f20c6d9488f6beef5b (diff)
Fix lint report
-rw-r--r--src/bcal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bcal.c b/src/bcal.c
index 940bed2..cbce7fd 100644
--- a/src/bcal.c
+++ b/src/bcal.c
@@ -171,7 +171,7 @@ static size_t bstrlcpy(char *dest, const char *src, size_t n)
static bool program_exit(const char *str)
{
- if (!(strcmp(str, "exit") && strcmp(str, "quit")))
+ if (!strcmp(str, "exit") || !strcmp(str, "quit"))
return TRUE;
return FALSE;
}