aboutsummaryrefslogtreecommitdiff
path: root/src/remembering-c.c
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-06-28 08:39:02 -0300
committerEuAndreh <eu@euandre.org>2021-06-28 08:39:02 -0300
commit2cfc792286012b38f1ce534af7385f542e775099 (patch)
tree3542c51dd09f7505e9c3f7b70960f74440f4ca4a /src/remembering-c.c
parentgit mv tests/tests-lib.sh tests/lib.sh (diff)
downloadremembering-2cfc792286012b38f1ce534af7385f542e775099.tar.gz
remembering-2cfc792286012b38f1ce534af7385f542e775099.tar.xz
src/remembering-c.c: Use better grouping of parentheses for strcmp()
Diffstat (limited to 'src/remembering-c.c')
-rw-r--r--src/remembering-c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/remembering-c.c b/src/remembering-c.c
index 494fffc..889dae2 100644
--- a/src/remembering-c.c
+++ b/src/remembering-c.c
@@ -64,7 +64,7 @@ static int missing(FILE *stream, const char *const argument) {
static char *get_profile_file(const char *const profile, FILE *stream) {
char *home = getenv("XDG_DATA_HOME");
- if (!home || (strcmp(home, "")) == 0) {
+ if (!home || (strcmp(home, "") == 0)) {
if (!(home = getenv("HOME"))) {
fprintf(stream, "Unable to get $XDG_DATA_HOME or $HOME environment variables\n");
return NULL;