summaryrefslogtreecommitdiff
path: root/imagemagickwrapper.c
diff options
context:
space:
mode:
Diffstat (limited to 'imagemagickwrapper.c')
-rw-r--r--imagemagickwrapper.c2
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);