fix: correct null pointer dereference in user profile avatar loader
This commit is contained in:
parent
25ee4a02ba
commit
2212de195d
2
tools.h
2
tools.h
@ -425,7 +425,7 @@ char* tool_function_directory_glob(char* target_dir) {
|
|||||||
|
|
||||||
if (glob(target_dir, GLOB_TILDE, NULL, &results) != 0) {
|
if (glob(target_dir, GLOB_TILDE, NULL, &results) != 0) {
|
||||||
perror("glob failed");
|
perror("glob failed");
|
||||||
return NULL;
|
return strdup("");
|
||||||
}
|
}
|
||||||
|
|
||||||
json_object* json_array = json_object_new_array();
|
json_object* json_array = json_object_new_array();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user