summaryrefslogtreecommitdiff
path: root/libcore
diff options
context:
space:
mode:
Diffstat (limited to 'libcore')
-rw-r--r--libcore/imageloader.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libcore/imageloader.c b/libcore/imageloader.c
index 1f4a31f..139e2d0 100644
--- a/libcore/imageloader.c
+++ b/libcore/imageloader.c
@@ -196,8 +196,9 @@ bool cImageImporterSVG::LoadImage(const char *path) {
GError *error = NULL;
handle = rsvg_handle_new_from_file(path, &error);
if (!handle) {
- if (config.debugImageLoading)
+ if (config.debugImageLoading && error) {
dsyslog("skindesigner: RSVG Error: %s", error->message);
+ }
return false;
}