Changeset 154

Show
Ignore:
Timestamp:
09/04/07 14:14:00 (20 months ago)
Author:
smoku
Message:

Integrated SQLite fixes by Nicolas Pouillon. Closes #45

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/sm/storage_sqlite.c

    r106 r154  
    274274            nleft += nright; 
    275275            free (right); 
     276            right = NULL; 
     277            lright = 0; 
    276278 
    277279            SQLITE_SAFE_CAT (left, nleft, lleft, " )"); 
     
    281283            res = sqlite3_prepare (data->db, left, strlen (left), &stmt, NULL); 
    282284            free (left); 
     285            left = NULL; 
     286            lleft = 0; 
    283287            if (res != SQLITE_OK) { 
    284288                log_write (drv->st->sm->log, LOG_ERR,