[asterisk-commits] tilghman: trunk r130234 - /trunk/res/res_odbc.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Jul 11 14:56:34 CDT 2008
Author: tilghman
Date: Fri Jul 11 14:56:34 2008
New Revision: 130234
URL: http://svn.digium.com/view/asterisk?view=rev&rev=130234
Log:
Don't copy on NULL.
Modified:
trunk/res/res_odbc.c
Modified: trunk/res/res_odbc.c
URL: http://svn.digium.com/view/asterisk/trunk/res/res_odbc.c?view=diff&rev=130234&r1=130233&r2=130234
==============================================================================
--- trunk/res/res_odbc.c (original)
+++ trunk/res/res_odbc.c Fri Jul 11 14:56:34 2008
@@ -741,9 +741,11 @@
odbc_obj_connect(obj);
#if DEBUG_THREADS
- ast_copy_string(obj->file, file, sizeof(obj->file));
- ast_copy_string(obj->function, function, sizeof(obj->function));
- obj->lineno = lineno;
+ if (obj) {
+ ast_copy_string(obj->file, file, sizeof(obj->file));
+ ast_copy_string(obj->function, function, sizeof(obj->function));
+ obj->lineno = lineno;
+ }
#endif
return obj;
More information about the asterisk-commits
mailing list