mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-09 14:21:03 +03:00
Fix an uninitialized variable that could cause problems when comparing
two NULLs. (CVS 757) FossilOrigin-Name: 015425001813971f6d4c97c18d64c7f14fa1955f
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
** This file contains functions for allocating memory, comparing
|
||||
** strings, and stuff like that.
|
||||
**
|
||||
** $Id: util.c,v 1.50 2002/08/26 19:55:08 drh Exp $
|
||||
** $Id: util.c,v 1.51 2002/09/30 01:31:22 drh Exp $
|
||||
*/
|
||||
#include "sqliteInt.h"
|
||||
#include <stdarg.h>
|
||||
@@ -748,7 +748,7 @@ int sqliteSortCompare(const char *a, const char *b){
|
||||
int len;
|
||||
int res = 0;
|
||||
int isNumA, isNumB;
|
||||
int dir;
|
||||
int dir = 0;
|
||||
|
||||
while( res==0 && *a && *b ){
|
||||
if( a[0]=='N' || b[0]=='N' ){
|
||||
|
||||
Reference in New Issue
Block a user