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 /apps/filetypes.c | |
| parent | bec0a599376f7b2585c9e36a987e34061efe8184 (diff) | |
| download | rockbox-1659a1a0317e06ff1f4fd22c323ecb33a041a470.zip rockbox-1659a1a0317e06ff1f4fd22c323ecb33a041a470.tar.gz rockbox-1659a1a0317e06ff1f4fd22c323ecb33a041a470.tar.bz2 rockbox-1659a1a0317e06ff1f4fd22c323ecb33a041a470.tar.xz | |
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/filetypes.c')
| -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 b884102..5a7ed11 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) |