diff options
author | drh <drh@noemail.net> | 2009-05-03 20:23:53 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2009-05-03 20:23:53 +0000 |
commit | dee0e404d6145422343419adb523feb458baf235 (patch) | |
tree | 5ebcbdad6865e2d3f7b62948b4bd94ff85294b4f /src/malloc.c | |
parent | 1b7ecbb4ce01f94b4887b7072aae62fdf2cf1c7c (diff) | |
download | sqlite-dee0e404d6145422343419adb523feb458baf235.tar.gz sqlite-dee0e404d6145422343419adb523feb458baf235.zip |
Changes to facility full coverage testing of util.c. (CVS 6597)
FossilOrigin-Name: a612299092a48b38c5f9cf430bbcaf41777cbcb3
Diffstat (limited to 'src/malloc.c')
-rw-r--r-- | src/malloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/malloc.c b/src/malloc.c index 92e56394e..70d691601 100644 --- a/src/malloc.c +++ b/src/malloc.c @@ -12,7 +12,7 @@ ** ** Memory allocation functions used throughout sqlite. ** -** $Id: malloc.c,v 1.61 2009/03/24 15:08:10 drh Exp $ +** $Id: malloc.c,v 1.62 2009/05/03 20:23:54 drh Exp $ */ #include "sqliteInt.h" #include <stdarg.h> @@ -651,7 +651,7 @@ char *sqlite3DbStrDup(sqlite3 *db, const char *z){ if( z==0 ){ return 0; } - n = (db ? sqlite3Strlen(db, z) : sqlite3Strlen30(z))+1; + n = sqlite3Strlen30(z) + 1; assert( (n&0x7fffffff)==n ); zNew = sqlite3DbMallocRaw(db, (int)n); if( zNew ){ |