mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-03-03 21:26:36 +00:00
util: make sure u_config_json.file_loaded is false if we didn't load the file
This commit is contained in:
parent
82d9ed75c2
commit
36bc45b686
|
@ -41,6 +41,7 @@ u_config_json_close(struct u_config_json *json)
|
|||
void
|
||||
u_config_json_open_or_create_main_file(struct u_config_json *json)
|
||||
{
|
||||
json->file_loaded = false;
|
||||
#if defined(XRT_OS_LINUX) && !defined(XRT_OS_ANDROID)
|
||||
char tmp[1024];
|
||||
ssize_t ret = u_file_get_path_in_config_dir(CONFIG_FILE_NAME, tmp, sizeof(tmp));
|
||||
|
|
Loading…
Reference in a new issue