forked from len0rd/rockbox
Fix jpeg viewer crashing in directories with files without extension.
Thanks go to Bill Janssen git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9954 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
06605a92c0
commit
c138d004dc
1 changed files with 2 additions and 0 deletions
|
@ -1970,6 +1970,8 @@ static int compare(const void* p1, const void* p2)
|
|||
|
||||
bool jpg_ext(const char ext[])
|
||||
{
|
||||
if(!ext)
|
||||
return false;
|
||||
if(!rb->strcasecmp(ext,".jpg") ||
|
||||
!rb->strcasecmp(ext,".jpe") ||
|
||||
!rb->strcasecmp(ext,".jpeg"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue