]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix issue on mailing list
authorJeff Lenk <jeff@jefflenk.com>
Wed, 27 Apr 2011 16:26:08 +0000 (11:26 -0500)
committerJeff Lenk <jeff@jefflenk.com>
Wed, 27 Apr 2011 16:26:08 +0000 (11:26 -0500)
mod_crd_sqlite entry limit and sqlite segfaults on triggers

libs/sqlite/src/sqliteInt.h

index 6483912cc9970882b42d869eb825659d17c07408..3686a091e7a22013ed0bb454354a8eb6e8f2b2cf 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)          strdup(x)//sqlite3StrDup(x)
+#define sqliteStrDup(x)          (x?strdup(x):NULL)//sqlite3StrDup(x)
 #define sqliteStrNDup(x,y)       strndup_lite(x,y) //sqlite3StrNDup(x,y)
 #define sqliteReallocOrFree(x,y) sqlite3ReallocOrFree(x,y)