diff options
Diffstat (limited to '')
-rw-r--r-- | widget_image.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/widget_image.c b/widget_image.c index 15ca90b..6320e44 100644 --- a/widget_image.c +++ b/widget_image.c @@ -230,6 +230,11 @@ int widget_image_init(WIDGET * Self) property_load(section, "visible", "1", &Image->visible); property_load(section, "inverted", "0", &Image->inverted); + /* sanity checks */ + if (!property_valid(&Image->file)) { + error("Warning: widget %s has no file", section); + } + free(section); Self->data = Image; |