summaryrefslogtreecommitdiffstats
path: root/apps/filetypes.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2013-01-21 09:38:19 +1100
committerJonathan Gordon <rockbox@jdgordon.info>2013-01-21 09:38:19 +1100
commit0c87e02631d954b5b8b0ec584bd60db77b60427e (patch)
tree9a5e564d4125e21741e01c0b717776913dd63c6b /apps/filetypes.c
parent3b6b5130c90fb25325dcea0ed76db7cf060f2ff6 (diff)
downloadrockbox-0c87e02631d954b5b8b0ec584bd60db77b60427e.tar.gz
rockbox-0c87e02631d954b5b8b0ec584bd60db77b60427e.zip
And use the unknown file colour if there is no extension
Change-Id: I35e16643fa655b7d1e006ea85be5c351427bca14
Diffstat (limited to 'apps/filetypes.c')
-rw-r--r--apps/filetypes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/filetypes.c b/apps/filetypes.c
index 2d871a8dfe..ebccb09eac 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[MAX_FILETYPES];
+ return custom_colors[unknown_file.color];
extension++;
i = find_extension(extension);