mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 18:31:12 +02:00
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:
@@ -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