From 282610e2371faf668545a16afa294114debe1456 Mon Sep 17 00:00:00 2001 From: Steven Smith Date: Sat, 18 Jun 2016 21:36:23 -0700 Subject: [PATCH] Fix updating from installed FBI. --- source/core/util.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source/core/util.c b/source/core/util.c index 7749160..ac63e94 100644 --- a/source/core/util.c +++ b/source/core/util.c @@ -383,9 +383,13 @@ int util_compare_file_infos(const void** p1, const void** p2) { } } -static char path_3dsx[FILE_PATH_MAX]; +static char path_3dsx[FILE_PATH_MAX] = {'\0'}; const char* util_get_3dsx_path() { + if(strlen(path_3dsx) == 0) { + return NULL; + } + return path_3dsx; }