Merged revisions 129741 via svnmerge from

https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r129741 | tilghman | 2008-07-10 16:19:48 -0500 (Thu, 10 Jul 2008) | 2 lines

Oops

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@129758 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.6.1
Tilghman Lesher 17 years ago
parent eb5cce4586
commit 8b0f38cc57

@ -142,8 +142,10 @@ static struct ast_variable *realtime_odbc(const char *database, const char *tabl
}
newparam = va_arg(aq, const char *);
if (!newparam)
if (!newparam) {
ast_odbc_release_obj(obj);
return NULL;
}
newval = va_arg(aq, const char *);
op = !strchr(newparam, ' ') ? " =" : "";
snprintf(sql, sizeof(sql), "SELECT * FROM %s WHERE %s%s ?%s", table, newparam, op,

Loading…
Cancel
Save