/ Check-in [01542500]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix an uninitialized variable that could cause problems when comparing two NULLs. (CVS 757)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:015425001813971f6d4c97c18d64c7f14fa1955f
User & Date: drh 2002-09-30 01:31:22
Context
2002-09-30
12:36
Fix a bug in the left outer join logic. (CVS 758) check-in: 6c0f44bd user: drh tags: trunk
01:31
Fix an uninitialized variable that could cause problems when comparing two NULLs. (CVS 757) check-in: 01542500 user: drh tags: trunk
2002-09-25
19:50
Version 2.7.2 (CVS 756) check-in: 59ba4344 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/util.c.

    10     10   **
    11     11   *************************************************************************
    12     12   ** Utility functions used throughout sqlite.
    13     13   **
    14     14   ** This file contains functions for allocating memory, comparing
    15     15   ** strings, and stuff like that.
    16     16   **
    17         -** $Id: util.c,v 1.50 2002/08/26 19:55:08 drh Exp $
           17  +** $Id: util.c,v 1.51 2002/09/30 01:31:22 drh Exp $
    18     18   */
    19     19   #include "sqliteInt.h"
    20     20   #include <stdarg.h>
    21     21   #include <ctype.h>
    22     22   
    23     23   /*
    24     24   ** If malloc() ever fails, this global variable gets set to 1.
................................................................................
   744    744   ** of expressions and for indices.  This was not the case for version
   745    745   ** 2.6.3 and earlier.
   746    746   */
   747    747   int sqliteSortCompare(const char *a, const char *b){
   748    748     int len;
   749    749     int res = 0;
   750    750     int isNumA, isNumB;
   751         -  int dir;
          751  +  int dir = 0;
   752    752   
   753    753     while( res==0 && *a && *b ){
   754    754       if( a[0]=='N' || b[0]=='N' ){
   755    755         if( a[0]==b[0] ){
   756    756           a += 2;
   757    757           b += 2;
   758    758           continue;