summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2008-05-24 20:03:56 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2008-05-24 20:03:56 +0000
commit1659a1a0317e06ff1f4fd22c323ecb33a041a470 (patch)
treec065251a27c00adebedef553d5fe54e9079bd6ad /apps
parentbec0a599376f7b2585c9e36a987e34061efe8184 (diff)
downloadrockbox-1659a1a0317e06ff1f4fd22c323ecb33a041a470.tar.gz
rockbox-1659a1a0317e06ff1f4fd22c323ecb33a041a470.tar.bz2
rockbox-1659a1a0317e06ff1f4fd22c323ecb33a041a470.zip
Don't do the same check twice. Thanks to fml on IRC for noting.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17624 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/filetypes.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/filetypes.c b/apps/filetypes.c
index b884102ed7..5a7ed115e6 100644
--- a/apps/filetypes.c
+++ b/apps/filetypes.c
@@ -471,8 +471,7 @@ int filetype_list_viewers(const char* current_file)
int j;
for (j=0;j<count;j++) /* check if the plugin is in the list yet */
{
- if (filetypes[i].plugin &&
- !strcmp(filetypes[i].plugin,filetypes[items[j]].plugin))
+ if (!strcmp(filetypes[i].plugin,filetypes[items[j]].plugin))
break;
}
if (j<count)