* lwlib-Xm.c (xm_update_menu): Avoid a NULL pointer dereference (Bug#7690).
This commit is contained in:
parent
e6cf7a8272
commit
fdbd21a482
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2011-01-23 Werner Meisner <weme24@gmx.net>
|
||||
|
||||
* lwlib-Xm.c (xm_update_menu): Avoid a NULL pointer dereference
|
||||
(Bug#7690).
|
||||
|
||||
2010-05-07 Chong Yidong <cyd@stupidchicken.com>
|
||||
|
||||
* Version 23.2 released.
|
||||
|
|
|
@ -825,7 +825,7 @@ xm_update_menu (instance, widget, val, deep_p)
|
|||
|
||||
/* Now replace from scratch all the buttons after the last
|
||||
place that the top-level structure changed. */
|
||||
if (val->contents->change == STRUCTURAL_CHANGE)
|
||||
if (val->contents && val->contents->change == STRUCTURAL_CHANGE)
|
||||
{
|
||||
destroy_all_children (widget, num_children_to_keep);
|
||||
make_menu_in_widget (instance, widget, val->contents,
|
||||
|
|
Loading…
Add table
Reference in a new issue