mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 12:36:58 +00:00
Don't copy on NULL.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@130234 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -741,9 +741,11 @@ struct odbc_obj *ast_odbc_request_obj(const char *name, int check)
|
|||||||
odbc_obj_connect(obj);
|
odbc_obj_connect(obj);
|
||||||
|
|
||||||
#if DEBUG_THREADS
|
#if DEBUG_THREADS
|
||||||
|
if (obj) {
|
||||||
ast_copy_string(obj->file, file, sizeof(obj->file));
|
ast_copy_string(obj->file, file, sizeof(obj->file));
|
||||||
ast_copy_string(obj->function, function, sizeof(obj->function));
|
ast_copy_string(obj->function, function, sizeof(obj->function));
|
||||||
obj->lineno = lineno;
|
obj->lineno = lineno;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return obj;
|
return obj;
|
||||||
|
Reference in New Issue
Block a user