Skip to content
Snippets Groups Projects
Commit 83972093 authored by Tilghman Lesher's avatar Tilghman Lesher
Browse files

Fix runtime symbol error

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@136406 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 60b578d6
No related branches found
No related tags found
No related merge requests found
......@@ -268,7 +268,7 @@ static char *anti_injection(const char *str, int len)
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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment