aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2006-04-08 19:14:53 +0000
committerdrh <drh@noemail.net>2006-04-08 19:14:53 +0000
commit15abd02897a0f85431fb8a4e92c54d7a9e935ce9 (patch)
treedc71937614ce506051b87b9789a5ecdf898a7e43 /src
parentf07e7d502ed9711bc921de6ea74ba61b6227b88a (diff)
downloadsqlite-15abd02897a0f85431fb8a4e92c54d7a9e935ce9.tar.gz
sqlite-15abd02897a0f85431fb8a4e92c54d7a9e935ce9.zip
Variable declarations should come before code. Ticket #1763. (CVS 3171)
FossilOrigin-Name: 9682f84401f7e21630246e1c37351425b78b7afa
Diffstat (limited to 'src')
-rw-r--r--src/util.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/util.c b/src/util.c
index 72751dfdf..fb13b8297 100644
--- a/src/util.c
+++ b/src/util.c
@@ -14,7 +14,7 @@
** This file contains functions for allocating memory, comparing
** strings, and stuff like that.
**
-** $Id: util.c,v 1.188 2006/04/04 01:54:55 drh Exp $
+** $Id: util.c,v 1.189 2006/04/08 19:14:53 drh Exp $
*/
#include "sqliteInt.h"
#include "os.h"
@@ -476,8 +476,9 @@ static int OSSIZEOF(void *p){
** pointer to the space allocated for the application to use.
*/
static void OSFREE(void *pFree){
+ u32 *p; /* Pointer to the OS-layer allocation */
sqlite3OsEnterMutex();
- u32 *p = (u32 *)getOsPointer(pFree); /* p points to Os level allocation */
+ p = (u32 *)getOsPointer(pFree);
checkGuards(p);
unlinkAlloc(p);
memset(pFree, 0x55, OSSIZEOF(pFree));