[trunk] Make sure to test value not pointer

Update issue 302
This commit is contained in:
Mathieu Malaterre 2014-03-25 16:34:59 +00:00
parent 5e1a0fad08
commit 9ba6bc6042
1 changed files with 1 additions and 1 deletions

View File

@ -222,7 +222,7 @@ int get_file_format(const char *filename) {
if (ext == NULL)
return -1;
ext++;
if(ext) {
if(*ext) {
for(i = 0; i < sizeof(format)/sizeof(*format); i++) {
if(strcasecmp(ext, extension[i]) == 0) {
return format[i];