Commit fdbd21a4 authored by Werner Meisner's avatar Werner Meisner Committed by Chong Yidong

* lwlib-Xm.c (xm_update_menu): Avoid a NULL pointer dereference (Bug#7690).

parent e6cf7a82
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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment