summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/filetypes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/filetypes.c b/apps/filetypes.c
index ebccb09eac..38324d0f3a 100644
--- a/apps/filetypes.c
+++ b/apps/filetypes.c
@@ -514,7 +514,7 @@ int filetype_get_color(const char * name, int attr)
return custom_colors[0];
extension = strrchr(name, '.');
if (!extension)
- return custom_colors[unknown_file.color];
+ return unknown_file.color;
extension++;
i = find_extension(extension);