mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-01 18:01:13 +02:00
fb_ng: bail out early in paintIcon() if name is empty
This commit is contained in:
@@ -807,6 +807,8 @@ bool CFrameBuffer::paintIcon(const std::string & filename, const int x, const in
|
|||||||
int yy = y;
|
int yy = y;
|
||||||
//printf("CFrameBuffer::paintIcon: load %s\n", filename.c_str());fflush(stdout);
|
//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 */
|
/* we cache and check original name */
|
||||||
it = icon_cache.find(filename);
|
it = icon_cache.find(filename);
|
||||||
if(it == icon_cache.end()) {
|
if(it == icon_cache.end()) {
|
||||||
|
Reference in New Issue
Block a user