mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
make sure that function doesn't return while structure is
holding pointer to a stack variable. Also, simplify logic. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10234 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
@@ -2073,8 +2073,8 @@ gboolean gnc_xfer_dialog_run_until_done( XferDialog *xferData )
|
||||
{
|
||||
gboolean result_ok = FALSE;
|
||||
|
||||
if( xferData )
|
||||
{
|
||||
if( NULL == xferData ) return FALSE;
|
||||
|
||||
xferData->result_p = &result_ok;
|
||||
while( TRUE )
|
||||
{
|
||||
@@ -2092,13 +2092,12 @@ gboolean gnc_xfer_dialog_run_until_done( XferDialog *xferData )
|
||||
find_xfer, xferData ) )
|
||||
{
|
||||
/* no more dialog, and OK was clicked, so assume it's all good */
|
||||
xferData->result_p = NULL;
|
||||
return( result_ok );
|
||||
}
|
||||
/* else run the dialog again */
|
||||
}
|
||||
}
|
||||
|
||||
return( FALSE );
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user