mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
fix potential null-pointer deref; fix indentation problems
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10235 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
@@ -906,7 +906,7 @@ gnc_mdi_child_changed_cb (GnomeMDI * mdi, GnomeMDIChild * prev_child,
|
||||
gnc_mdi_child_set_title (childwin);
|
||||
|
||||
/* install menu hints if relevant */
|
||||
if (mdi->active_child)
|
||||
if (mdi && mdi->active_child)
|
||||
{
|
||||
/* the arg to this callback is SUPPOSED to be the last active child,
|
||||
* but it gets to be NULL under some circumstances */
|
||||
|
||||
Reference in New Issue
Block a user