diff options
| author | louis <louis.braun@gmx.de> | 2013-10-27 08:06:16 +0100 |
|---|---|---|
| committer | louis <louis.braun@gmx.de> | 2013-10-27 08:06:16 +0100 |
| commit | eec77c1ec540282b30891aeede497045b97070b6 (patch) | |
| tree | 2cea55d6345f18713cd2fc09b20407eb96d57f93 | |
| parent | 657ee2984ed911fb46a1ea25f916f2ce35800260 (diff) | |
| download | skin-nopacity-eec77c1ec540282b30891aeede497045b97070b6.tar.gz skin-nopacity-eec77c1ec540282b30891aeede497045b97070b6.tar.bz2 | |
Fixed a crash if a poster with empty path is tried to load
| -rw-r--r-- | imagemagickwrapper.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/imagemagickwrapper.c b/imagemagickwrapper.c index 3ae1cb0..aa1c147 100644 --- a/imagemagickwrapper.c +++ b/imagemagickwrapper.c @@ -62,6 +62,8 @@ bool cImageMagickWrapper::LoadImage(std::string FileName, std::string Path, std: } bool cImageMagickWrapper::LoadImage(const char *fullpath) { + if ((fullpath == NULL) || (strlen(fullpath) < 5)) + return false; try { //dsyslog("nopacity: trying to load: %s", fullpath); buffer.read(fullpath); |
