mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-27 14:29:42 +03:00
Check for null pointer before setting label
This commit is contained in:
parent
9118f3c8cc
commit
103270938b
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user