diff options
| author | Federico Angelilli <code@fedang.net> | 2024-11-24 20:14:59 +0100 |
|---|---|---|
| committer | Federico Angelilli <code@fedang.net> | 2024-11-24 20:14:59 +0100 |
| commit | 21fb9be7b28843d9232803b90137c7251fe9194e (patch) | |
| tree | 3469e073d1ea854f682665945f9be8c3af819fda /src/config.c | |
| parent | a063bb86e8ab1373aea28f9e9ff375032b1fa475 (diff) | |
Add change function to other blocks
Diffstat (limited to 'src/config.c')
| -rw-r--r-- | src/config.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/config.c b/src/config.c index 6d671b9..ffceba9 100644 --- a/src/config.c +++ b/src/config.c @@ -193,6 +193,9 @@ static bool config_read_color(const char *value, color_t *result) static bool config_read_gradient(const char *value, gradient_t *result) { + // TODO: Ensure that this is correct + gradient_free(result); + size_t count = 0; for (size_t i = 0; value[i] != '\0'; ++i) count += value[i] == ','; |
