some minor bug patches

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@855 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Linas Vepstas 1998-05-31 00:22:55 +00:00
parent fa2ff9cf70
commit bbdd9486e4
2 changed files with 10 additions and 2 deletions

View File

@ -30,6 +30,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. *
\********************************************************************/
#ifdef COMPILATION_UNIT_IS_EMPTY_DUUDE
#include <stdlib.h>
#include "messages.h"
@ -485,5 +487,6 @@ xaccGetChangeFlag (BasicRegister *reg)
return changed;
}
#endif /* COMPILATION_UNIT_IS_EMPTY_DUUDE */
/* ============ END OF FILE ===================== */

View File

@ -197,8 +197,13 @@ xaccTableResize (Table * table,
int new_phys_rows, int new_phys_cols,
int new_virt_rows, int new_virt_cols)
{
/* hack alert -- should check to make sure that no null pointers
* or bad values were passed in ... */
if (!table) return;
if ((new_phys_rows < new_virt_rows) ||
(new_phys_cols < new_virt_cols)) {
printf ("Internal Error: xaccTableResize(): the number of "
"physical rows must equal or exceed the number of virtual rows \n");
exit (1);
}
/* resize the string data array */
RESIZE_ARR ((table->num_phys_rows),