From f7826ea1af61c8e379244628288a20171b5a2bcd Mon Sep 17 00:00:00 2001 From: Youngbok Shin Date: Mon, 23 Apr 2018 21:24:13 +0900 Subject: [PATCH] elementary bg: allow NULL pointers in legacy usage Summary: It should not cause crash with NULL parameters. @fix Reviewers: woohyun, raster, cedric Reviewed By: woohyun, raster Differential Revision: https://phab.enlightenment.org/D5979 --- src/lib/elementary/efl_ui_bg_widget.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/elementary/efl_ui_bg_widget.c b/src/lib/elementary/efl_ui_bg_widget.c index 09f07b1e63..8fe8072345 100644 --- a/src/lib/elementary/efl_ui_bg_widget.c +++ b/src/lib/elementary/efl_ui_bg_widget.c @@ -218,8 +218,8 @@ _efl_ui_bg_widget_efl_file_file_get(const Eo *obj, Efl_Ui_Bg_Widget_Data *sd, co { if (elm_widget_is_legacy(obj)) { - *file = sd->file; - *key = sd->key; + if (file) *file = sd->file; + if (key) *key = sd->key; return; }