diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2013-01-21 09:38:19 +1100 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2013-01-21 09:38:19 +1100 |
commit | 0c87e02631d954b5b8b0ec584bd60db77b60427e (patch) | |
tree | 9a5e564d4125e21741e01c0b717776913dd63c6b | |
parent | 3b6b5130c90fb25325dcea0ed76db7cf060f2ff6 (diff) | |
download | rockbox-0c87e02631d954b5b8b0ec584bd60db77b60427e.tar.gz rockbox-0c87e02631d954b5b8b0ec584bd60db77b60427e.zip |
And use the unknown file colour if there is no extension
Change-Id: I35e16643fa655b7d1e006ea85be5c351427bca14
-rw-r--r-- | apps/filetypes.c | 2 |
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) | |||
514 | return custom_colors[0]; | 514 | return custom_colors[0]; |
515 | extension = strrchr(name, '.'); | 515 | extension = strrchr(name, '.'); |
516 | if (!extension) | 516 | if (!extension) |
517 | return custom_colors[MAX_FILETYPES]; | 517 | return custom_colors[unknown_file.color]; |
518 | extension++; | 518 | extension++; |
519 | 519 | ||
520 | i = find_extension(extension); | 520 | i = find_extension(extension); |