mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-08 03:22:21 +03:00
Fix more compiler warnings. (CVS 5074)
FossilOrigin-Name: 59568844e774dbe89fd20bbc8f49a3665cc54717
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
** This file contains routines used for analyzing expressions and
|
||||
** for generating VDBE code that evaluates expressions in SQLite.
|
||||
**
|
||||
** $Id: expr.c,v 1.370 2008/04/29 00:15:21 drh Exp $
|
||||
** $Id: expr.c,v 1.371 2008/05/01 17:16:53 drh Exp $
|
||||
*/
|
||||
#include "sqliteInt.h"
|
||||
#include <ctype.h>
|
||||
@@ -266,8 +266,7 @@ Expr *sqlite3Expr(
|
||||
const Token *pToken /* Argument token */
|
||||
){
|
||||
Expr *pNew;
|
||||
static const Expr zeroExpr;
|
||||
pNew = sqlite3DbMallocRaw(db, sizeof(Expr));
|
||||
pNew = sqlite3DbMallocZero(db, sizeof(Expr));
|
||||
if( pNew==0 ){
|
||||
/* When malloc fails, delete pLeft and pRight. Expressions passed to
|
||||
** this function must always be allocated with sqlite3Expr() for this
|
||||
@@ -277,7 +276,6 @@ Expr *sqlite3Expr(
|
||||
sqlite3ExprDelete(pRight);
|
||||
return 0;
|
||||
}
|
||||
*pNew = zeroExpr;
|
||||
pNew->op = op;
|
||||
pNew->pLeft = pLeft;
|
||||
pNew->pRight = pRight;
|
||||
|
||||
Reference in New Issue
Block a user