mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +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;
|
||||
//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()) {
|
||||
|
Reference in New Issue
Block a user