[asterisk-commits] tilghman: trunk r136406 - /trunk/cdr/cdr_tds.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Aug 7 10:10:54 CDT 2008


Author: tilghman
Date: Thu Aug  7 10:10:53 2008
New Revision: 136406

URL: http://svn.digium.com/view/asterisk?view=rev&rev=136406
Log:
Fix runtime symbol error

Modified:
    trunk/cdr/cdr_tds.c

Modified: trunk/cdr/cdr_tds.c
URL: http://svn.digium.com/view/asterisk/trunk/cdr/cdr_tds.c?view=diff&rev=136406&r1=136405&r2=136406
==============================================================================
--- trunk/cdr/cdr_tds.c (original)
+++ trunk/cdr/cdr_tds.c Thu Aug  7 10:10:53 2008
@@ -268,7 +268,7 @@
 static void get_date(char *dateField, size_t len, struct timeval when)
 {
 	/* To make sure we have date variable if not insert null to SQL */
-	if (!ast_tvzero(tv)) {
+	if (!ast_tvzero(when)) {
 		struct ast_tm tm;
 		ast_localtime(&when, &tm, NULL);
 		ast_strftime(dateField, len, "'" DATE_FORMAT "'", &tm);




More information about the asterisk-commits mailing list