/ Check-in [a76bff74]
Login

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

Overview
Comment:Remove an unnecessary memset() call.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: a76bff74ce47c9c98106566bde5d781992657e22
User & Date: drh 2016-10-01 19:32:54
Context
2016-10-01
20:43
Reduce the width of a memset() to avoid double-initializing some variables. check-in: 34edbfd1 user: drh tags: trunk
19:32
Remove an unnecessary memset() call. check-in: a76bff74 user: drh tags: trunk
19:21
Use sqlite3DbMallocRawNN() where appropriate, instead of sqlite3DbMallocRaw(). check-in: 54a449a4 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/vdbeaux.c.

  1960   1960       p->nMem = 0;
  1961   1961     }else{
  1962   1962       p->nCursor = nCursor;
  1963   1963       p->nVar = (ynVar)nVar;
  1964   1964       initMemArray(p->aVar, nVar, db, MEM_Null);
  1965   1965       p->nMem = nMem;
  1966   1966       initMemArray(p->aMem, nMem, db, MEM_Undefined);
  1967         -    memset(p->apArg, 0, nArg*sizeof(Mem*));
  1968   1967       memset(p->apCsr, 0, nCursor*sizeof(VdbeCursor*));
  1969   1968   #ifdef SQLITE_ENABLE_STMT_SCANSTATUS
  1970   1969       memset(p->anExec, 0, p->nOp*sizeof(i64));
  1971   1970   #endif
  1972   1971     }
  1973   1972     sqlite3VdbeRewind(p);
  1974   1973   }