From 2cc385b71e161eae39915bf24de53d5b704e7ea0 Mon Sep 17 00:00:00 2001 From: Andrew Opalach Date: Tue, 5 Aug 2025 10:50:08 -0400 Subject: Twitter module work, various cleanups and comment clarifications Signed-off-by: Andrew Opalach --- src/util/color_palette.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/util') 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; } -- cgit v1.2.3-101-g0448