fb_ng: bail out early in paintIcon() if name is empty

This commit is contained in:
Stefan Seyfried
2015-01-31 20:37:55 +01:00
parent 8a05656ef0
commit 404247b5a0

View File

@@ -807,6 +807,8 @@ bool CFrameBuffer::paintIcon(const std::string & filename, const int x, const in
int yy = y;
//printf("CFrameBuffer::paintIcon: load %s\n", filename.c_str());fflush(stdout);
if (filename.empty())
return false; /* nothing to do */
/* we cache and check original name */
it = icon_cache.find(filename);
if(it == icon_cache.end()) {