!remind no longer breaks the db

This commit is contained in:
anon 2023-08-03 16:08:28 +02:00
parent b90bcf6f3e
commit fc6fe42337

View File

@ -65,9 +65,9 @@ remind(char * who)
title = (char *) sqlite3_column_text(remind_stmt, 0);
title = strdup(title);
desc = (char *) sqlite3_column_text(remind_stmt, 1);
desc = strdup(desc);
if (desc) { desc = strdup(desc); } else { desc = ""; }
repo = (char *) sqlite3_column_text(remind_stmt, 3);
repo = strdup(repo);
if (repo) { repo = strdup(repo); } else { repo = "<no link available>"; }
asprintf(&r, IRC_COLOR_RED "%s: " IRC_COLOR_YELLOW "%s" IRC_COLOR_GREEN " (@" IRC_COLOR_BLUE "%s" IRC_COLOR_GREEN ")" IRC_COLOR_TERMINATE, title, desc, repo);
}
else