diff --git a/arch/sandbox/cpu/os.c b/arch/sandbox/cpu/os.c index 47622a599cad84ff15b7276fdf17a62e0753d879..35ea00ce3ca0699d478b206ed50a9411665ef495 100644 --- a/arch/sandbox/cpu/os.c +++ b/arch/sandbox/cpu/os.c @@ -366,6 +366,8 @@ int os_dirent_ls(const char *dirname, struct os_dirent_node **headp) case DT_LNK: next->type = OS_FILET_LNK; break; + default: + next->type = OS_FILET_UNKNOWN; } next->size = 0; snprintf(fname, len, "%s/%s", dirname, next->name);