Fix a pair of warnings reported by clang

This commit is contained in:
Pavel Labath 2011-04-09 14:57:47 +02:00 committed by Mathias Gumz
parent 91958279d3
commit a83cedf37e

View file

@ -67,14 +67,14 @@ PixmapWithMask *Image::load(const string &filename, int screen_num) {
if (filename.empty())
return false;
return NULL;
// determine file ending
string extension(StringUtil::toUpper(StringUtil::findExtension(filename)));
// valid handle?
if (s_image_map.find(extension) == s_image_map.end())
return false;
return NULL;
string path = locateFile(filename);
if (!path.empty())