diary

Text-based journaling program
git clone https://git.in0rdr.ch/diary.git
Log | Files | Refs | README | LICENSE

commit 524c76820985f2eeb50590b6f6de771f1cbcd130
parent 4f0c04e478fda3f0734480a2e242ce40e7d07479
Author: Andreas Gruhler <agruhl@gmx.ch>
Date:   Thu, 23 Jun 2022 14:26:29 +0200

fix(#15): Fix strcmp

Diffstat:
Msrc/caldav.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/caldav.c b/src/caldav.c @@ -600,7 +600,7 @@ int caldav_sync(struct tm* date, char* info_txt; - if (strcmp(CONFIG.google_clientid, "") || strcmp(CONFIG.google_secretid, "") || strcmp(CONFIG.google_calendar, "")) { + if (strcmp(CONFIG.google_clientid, "") == 0 || strcmp(CONFIG.google_secretid, "") == 0 || strcmp(CONFIG.google_calendar, "") == 0 ) { wclear(header); wresize(header, LINES, getmaxx(header)); info_txt = "Missing sync parameters. Set Google Client ID, secret and remote calendar name.\n"