diff options
author | danielk1977 <danielk1977@noemail.net> | 2005-03-29 02:54:03 +0000 |
---|---|---|
committer | danielk1977 <danielk1977@noemail.net> | 2005-03-29 02:54:03 +0000 |
commit | 50f059b8713dda40c7e5b29cb93d8019ffd5cec2 (patch) | |
tree | 65ee6f3724f3d72f84b5b7d3656b361d1065133e /src | |
parent | 88b01a13c6e540f3269a6f6a8e082c6a737f7cde (diff) | |
download | sqlite-50f059b8713dda40c7e5b29cb93d8019ffd5cec2.tar.gz sqlite-50f059b8713dda40c7e5b29cb93d8019ffd5cec2.zip |
Fix segfault due to exception handler being run with uninitialised variable. (CVS 2426)
FossilOrigin-Name: 78df3d040443414ae5b440eeabc0c8c205ab311d
Diffstat (limited to 'src')
-rw-r--r-- | src/btree.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/btree.c b/src/btree.c index 49fe8d9da..87726ae2a 100644 --- a/src/btree.c +++ b/src/btree.c @@ -9,7 +9,7 @@ ** May you share freely, never taking more than you give. ** ************************************************************************* -** $Id: btree.c,v 1.254 2005/03/28 08:44:07 danielk1977 Exp $ +** $Id: btree.c,v 1.255 2005/03/29 02:54:03 danielk1977 Exp $ ** ** This file implements a external (disk-based) database using BTrees. ** For a detailed discussion of BTrees, refer to @@ -3781,7 +3781,7 @@ static int balance_nonroot(MemPage *pPage){ u8 *apDiv[NB]; /* Divider cells in pParent */ int cntNew[NB+2]; /* Index in aCell[] of cell after i-th page */ int szNew[NB+2]; /* Combined size of cells place on i-th page */ - u8 **apCell; /* All cells begin balanced */ + u8 **apCell = 0; /* All cells begin balanced */ int *szCell; /* Local size of all cells in apCell[] */ u8 *aCopy[NB]; /* Space for holding data of apCopy[] */ u8 *aSpace; /* Space to hold copies of dividers cells */ |