1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Dominik Riebeling 2008-05-24 20:03:56 +00:00
parent bec0a59937
commit 1659a1a031

View file

@ -471,8 +471,7 @@ int filetype_list_viewers(const char* current_file)
int j; int j;
for (j=0;j<count;j++) /* check if the plugin is in the list yet */ for (j=0;j<count;j++) /* check if the plugin is in the list yet */
{ {
if (filetypes[i].plugin && if (!strcmp(filetypes[i].plugin,filetypes[items[j]].plugin))
!strcmp(filetypes[i].plugin,filetypes[items[j]].plugin))
break; break;
} }
if (j<count) if (j<count)