Add TODOs

This commit is contained in:
Alex Kotov 2021-11-14 05:35:19 +05:00
parent 30e1efff67
commit 35f697c3e9
Signed by: kotovalexarian
GPG Key ID: 553C0EBBEB5D5F08
1 changed files with 2 additions and 0 deletions

2
tags.c
View File

@ -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') {