diff options
author | Ole Loots <ole@monochrom.net> | 2013-12-21 03:17:39 +0100 |
---|---|---|
committer | Ole Loots <ole@monochrom.net> | 2013-12-21 03:17:39 +0100 |
commit | 103270938bf679730db5120a8945efcfb79d7db4 (patch) | |
tree | 51fa90728b0906ceaea487f78646e03ed1fd5dd8 | |
parent | 9118f3c8cc37cf2902c78f12c8b676d911653573 (diff) | |
download | netsurf-103270938bf679730db5120a8945efcfb79d7db4.tar.gz netsurf-103270938bf679730db5120a8945efcfb79d7db4.tar.bz2 |
Check for null pointer before setting label
-rw-r--r-- | atari/settings.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/atari/settings.c b/atari/settings.c index 30ad20a13..fa835bfbf 100644 --- a/atari/settings.c +++ b/atari/settings.c @@ -369,7 +369,9 @@ static bool handle_filesystem_select_button(short rsc_bt) if (require_path == false) { path = file_select(title, ""); - gemtk_obj_set_str_safe(dlgtree, rsc_te, path); + if (path != NULL) { + gemtk_obj_set_str_safe(dlgtree, rsc_te, path); + } } else { do { @@ -388,6 +390,7 @@ static bool handle_filesystem_select_button(short rsc_bt) } } + OBJ_UNCHECK(rsc_bt); OBJ_REDRAW(rsc_bt); OBJ_REDRAW(rsc_te); } |