diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2008-05-24 20:03:56 +0000 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2008-05-24 20:03:56 +0000 |
commit | 1659a1a0317e06ff1f4fd22c323ecb33a041a470 (patch) | |
tree | c065251a27c00adebedef553d5fe54e9079bd6ad | |
parent | bec0a599376f7b2585c9e36a987e34061efe8184 (diff) | |
download | rockbox-1659a1a0317e06ff1f4fd22c323ecb33a041a470.tar.gz 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
-rw-r--r-- | apps/filetypes.c | 3 |
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) | |||
471 | int j; | 471 | int j; |
472 | for (j=0;j<count;j++) /* check if the plugin is in the list yet */ | 472 | for (j=0;j<count;j++) /* check if the plugin is in the list yet */ |
473 | { | 473 | { |
474 | if (filetypes[i].plugin && | 474 | if (!strcmp(filetypes[i].plugin,filetypes[items[j]].plugin)) |
475 | !strcmp(filetypes[i].plugin,filetypes[items[j]].plugin)) | ||
476 | break; | 475 | break; |
477 | } | 476 | } |
478 | if (j<count) | 477 | if (j<count) |