aboutsummaryrefslogtreecommitdiff
path: root/src/remembering-c.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-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;