From 9acee0e3f74294c3b44f1485b22c92d482a3fb23 Mon Sep 17 00:00:00 2001 From: Linas Vepstas Date: Sat, 10 Jan 1998 09:15:55 +0000 Subject: [PATCH] oops silly bug git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@402 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/register/cellblock.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/register/cellblock.c b/src/register/cellblock.c index c11baa4f97..635f9034cf 100644 --- a/src/register/cellblock.c +++ b/src/register/cellblock.c @@ -6,7 +6,7 @@ CellBlock * xaccMallocCellBlock (int numrows, int numcols) { CellBlock *arr; - arr = (CellBlock *) malloc (sizeof (CellBlock *)); + arr = (CellBlock *) malloc (sizeof (CellBlock)); arr->cells = NULL; arr->widths = NULL; @@ -37,19 +37,9 @@ xaccInitCellBlock (CellBlock *arr, int numrows, int numcols) } /* malloc new cell array */ -{ -char * tmp; -printf ("%d %d \n", numrows, sizeof (SingleCell **)); -tmp = malloc (numrows * sizeof (SingleCell **)); -tmp = malloc (2); -arr->cells = (SingleCell ***) tmp; -printf ("%p %p %p %d \n", arr, tmp, arr->cells, numrows); -} arr->cells = (SingleCell ***) malloc (numrows * sizeof (SingleCell **)); -printf ("%p %p %d \n", arr, arr->cells, numrows); for (i=0; icells, arr->cells[i]); (arr->cells)[i] = (SingleCell **) malloc (numcols * sizeof (SingleCell *)); }