Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions manual_content_scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -1290,7 +1290,10 @@ bool manual_content_scan_get_task_config(
return false;

if (!path_is_directory(scan_settings.content_dir))
{
scan_settings.scan_single_file = true;
scan_settings.search_recursively = false;
}
else
scan_settings.scan_single_file = false;

Expand Down
2 changes: 1 addition & 1 deletion menu/cbs/menu_cbs_deferred_push.c
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ static int general_push(menu_displaylist_info_t *info,
if (!valid_extensions)
valid_extensions = info->exts;

if (*valid_extensions)
if (valid_extensions && *valid_extensions)
{
CHECK_SIZE(strlen(valid_extensions) + 12);
_len += strlcpy(newstr2 + _len, valid_extensions, size - _len);
Expand Down
Loading