[asterisk-commits] tilghman: branch 1.4 r99775 - /branches/1.4/res/res_odbc.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Jan 22 22:20:15 CST 2008


Author: tilghman
Date: Tue Jan 22 22:20:15 2008
New Revision: 99775

URL: http://svn.digium.com/view/asterisk?view=rev&rev=99775
Log:
Oops, should have checked for a NULL obj, here, too

Modified:
    branches/1.4/res/res_odbc.c

Change Statistics:
 0 files changed

Modified: branches/1.4/res/res_odbc.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/res/res_odbc.c?view=diff&rev=99775&r1=99774&r2=99775
==============================================================================
--- branches/1.4/res/res_odbc.c (original)
+++ branches/1.4/res/res_odbc.c Tue Jan 22 22:20:15 2008
@@ -473,7 +473,7 @@
 
 	if (obj && check) {
 		ast_odbc_sanity_check(obj);
-	} else if (obj->parent->idlecheck > 0 && ast_tvdiff_ms(ast_tvnow(), obj->last_used) / 1000 > obj->parent->idlecheck)
+	} else if (obj && obj->parent->idlecheck > 0 && ast_tvdiff_ms(ast_tvnow(), obj->last_used) / 1000 > obj->parent->idlecheck)
 		odbc_obj_connect(obj);
 
 	return obj;




More information about the asterisk-commits mailing list