From 35f697c3e9a520e2d87a22ce410cc251fbaa66b1 Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Sun, 14 Nov 2021 05:35:19 +0500 Subject: [PATCH] Add TODOs --- tags.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tags.c b/tags.c index 1c868f0..336db2a 100644 --- a/tags.c +++ b/tags.c @@ -44,6 +44,7 @@ static struct Tag tags[TAGS_COUNT] = { const struct Tag *tags_get(const unsigned int index) { + // TODO: assert here if (index >= TAGS_COUNT) return NULL; return &tags[index]; @@ -51,6 +52,7 @@ const struct Tag *tags_get(const unsigned int index) void tags_rename(const unsigned int index, const char *const new_custom_name) { + // TODO: assert here if (index >= TAGS_COUNT) return; if (new_custom_name == NULL || new_custom_name[0] == '\0') {