diff options
| author | 2025-08-05 10:50:08 -0400 | |
|---|---|---|
| committer | 2025-08-05 10:50:08 -0400 | |
| commit | 2cc385b71e161eae39915bf24de53d5b704e7ea0 (patch) | |
| tree | 0e5ee2dd01b87944b6401ffbb72e5232af5e2767 /src/util | |
| parent | e0fcbf0910b52a6e66eb733a2850ec58a53cf0e3 (diff) | |
| download | camu-2cc385b71e161eae39915bf24de53d5b704e7ea0.tar.gz camu-2cc385b71e161eae39915bf24de53d5b704e7ea0.tar.bz2 camu-2cc385b71e161eae39915bf24de53d5b704e7ea0.zip | |
Twitter module work, various cleanups
and comment clarifications
Signed-off-by: Andrew Opalach <andrew@akon.city>
Diffstat (limited to 'src/util')
| -rw-r--r-- | src/util/color_palette.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/color_palette.c b/src/util/color_palette.c index fc26a10..09c3ae3 100644 --- a/src/util/color_palette.c +++ b/src/util/color_palette.c @@ -38,7 +38,7 @@ bool camu_color_palette_init(str *path) { #ifdef NAUNET_HAS_JSON struct nn_file file; - if (!nn_file_open(&file, path, NNWT_FILE_READONLY)) { + if (!nn_file_exists(path) || !nn_file_open(&file, path, NNWT_FILE_READONLY)) { return false; } |