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

Origin commit data
------------------
Branch: ni/coolstream
Commit: 404247b5a0
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2015-01-31 (Sat, 31 Jan 2015)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Stefan Seyfried
2015-01-31 20:37:55 +01:00
parent 298ef5adc9
commit 978da61229

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()) {