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:
Linas Vepstas
2004-08-27 21:23:23 +00:00
parent 2efc2f1f60
commit 8926814468

View File

@@ -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 */