diff options
author | Youngbok Shin <youngb.shin@samsung.com> | 2018-04-23 21:24:13 +0900 |
---|---|---|
committer | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2018-04-23 21:25:15 +0900 |
commit | f7826ea1af61c8e379244628288a20171b5a2bcd (patch) | |
tree | 260505e70f4217ea369d19011438d637964deb05 /src/lib/elementary/efl_ui_bg_widget.c | |
parent | e74ebca670b3ebe4b2dc86cb7fb7a2100b86325c (diff) |
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
Diffstat (limited to '')
-rw-r--r-- | src/lib/elementary/efl_ui_bg_widget.c | 4 |
1 files 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 | |||
218 | { | 218 | { |
219 | if (elm_widget_is_legacy(obj)) | 219 | if (elm_widget_is_legacy(obj)) |
220 | { | 220 | { |
221 | *file = sd->file; | 221 | if (file) *file = sd->file; |
222 | *key = sd->key; | 222 | if (key) *key = sd->key; |
223 | return; | 223 | return; |
224 | } | 224 | } |
225 | 225 | ||