]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
make strdup NULL return strdup("") in sqlite for mac bug
authorAnthony Minessale <anthm@freeswitch.org>
Mon, 1 Aug 2011 15:02:31 +0000 (10:02 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Mon, 1 Aug 2011 15:02:31 +0000 (10:02 -0500)
libs/sqlite/src/sqliteInt.h

index 3686a091e7a22013ed0bb454354a8eb6e8f2b2cf..f2914f6230b77a9e4571776a1d29482c18021cc7 100644 (file)
@@ -297,7 +297,7 @@ static inline char *strndup_lite(const char *s, size_t n)
 #define sqliteMalloc(x)          zmalloc(x)//sqlite3Malloc(x,1)
 #define sqliteMallocRaw(x)       malloc(x)//sqlite3MallocRaw(x,1)
 #define sqliteRealloc(x,y)       realloc(x, y)//sqlite3Realloc(x,y)
-#define sqliteStrDup(x)          (x?strdup(x):NULL)//sqlite3StrDup(x)
+#define sqliteStrDup(x)          (x?strdup(x):strdup(""))//sqlite3StrDup(x)
 #define sqliteStrNDup(x,y)       strndup_lite(x,y) //sqlite3StrNDup(x,y)
 #define sqliteReallocOrFree(x,y) sqlite3ReallocOrFree(x,y)