/ Check-in [3bfbf026]
Login

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

Overview
Comment:Another minor simplification brought to light by clang.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 3bfbf026dd6a0eeef07f8f5f1ebf74c9cfebcd61
User & Date: drh 2011-03-06 21:54:33
Context
2011-03-08
02:38
Fix additional cases of possible signed integer overflow, especially with regard to negation. check-in: 2d5800bd user: drh tags: trunk
2011-03-06
21:54
Another minor simplification brought to light by clang. check-in: 3bfbf026 user: drh tags: trunk
21:28
Remove dead code identified by the clang static analyzer. check-in: 01a79d5a user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/vdbeaux.c.

  1513   1513   ** Also release any dynamic memory held by the VM in the Vdbe.aMem memory 
  1514   1514   ** cell array. This is necessary as the memory cell array may contain
  1515   1515   ** pointers to VdbeFrame objects, which may in turn contain pointers to
  1516   1516   ** open cursors.
  1517   1517   */
  1518   1518   static void closeAllCursors(Vdbe *p){
  1519   1519     if( p->pFrame ){
  1520         -    VdbeFrame *pFrame = p->pFrame;
         1520  +    VdbeFrame *pFrame;
  1521   1521       for(pFrame=p->pFrame; pFrame->pParent; pFrame=pFrame->pParent);
  1522   1522       sqlite3VdbeFrameRestore(pFrame);
  1523   1523     }
  1524   1524     p->pFrame = 0;
  1525   1525     p->nFrame = 0;
  1526   1526   
  1527   1527     if( p->apCsr ){