/* Allocate and zero memory. If the allocation fails, make the mallocFailed flag in the connection pointer.  */
SQLITE_PRIVATE void * sqlite3DbMallocZero(sqlite3 *, int)
/* Allocate and zero memory. If the allocation fails, make the mallocFailed flag in the connection pointer.  */
SQLITE_PRIVATE void * sqlite3DbMallocZero(sqlite3 *, int)
{
  void *p = sqlite3DbMallocRaw(db, n);
  if( p ){
    memset(p, 0, n);
  }
  return p;
}