From 9262512a1b9f560b117e67fdd9407fe49a89968c Mon Sep 17 00:00:00 2001 From: retoor <retoor@molodetz.nl> Date: Wed, 19 Mar 2025 21:25:34 +0100 Subject: [PATCH] Fixed. --- tools.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools.h b/tools.h index d644e46..e7994d5 100644 --- a/tools.h +++ b/tools.h @@ -425,7 +425,7 @@ char* tool_function_directory_glob(char* target_dir) { if (glob(target_dir, GLOB_TILDE, NULL, &results) != 0) { perror("glob failed"); - return NULL; + return strdup(""); } json_object* json_array = json_object_new_array();