aboutsummaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/menu.c b/menu.c
index 92da59c..fde7c10 100644
--- a/menu.c
+++ b/menu.c
@@ -240,7 +240,7 @@ const char *select_content(void) {
const char **exts_with_zip = NULL;
int i = 0, size = 0;
- if (content && content->path) {
+ if (content && strlen(content->path)) {
strncpy(content_path, content->path, sizeof(content_path) - 1);
} else if (getenv("CONTENT_DIR")) {
strncpy(content_path, getenv("CONTENT_DIR"), sizeof(content_path) - 1);