Merged revisions 111961 via svnmerge from

https://origsvn.digium.com/svn/asterisk/trunk

........
r111961 | file | 2008-03-31 11:20:39 -0300 (Mon, 31 Mar 2008) | 4 lines

Initialize all these here tmp pointers at declaration. They confused some compilers a wee bit.
(closes issue #12333)
Reported by: ovi

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@111962 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.6.0
Joshua Colp 17 years ago
parent 1769846227
commit e6e67bde76

@ -1204,8 +1204,9 @@ static int realtime_update_handler(const char *database, const char *table,
return rows_num;
}
static int realtime_store_handler(const char *database, const char *table, va_list ap) {
char *errormsg, *tmp_str, *tmp_keys, *tmp_keys2, *tmp_vals, *tmp_vals2;
static int realtime_store_handler(const char *database, const char *table, va_list ap)
{
char *errormsg, *tmp_str, *tmp_keys = NULL, *tmp_keys2 = NULL, *tmp_vals = NULL, *tmp_vals2 = NULL;
const char **params, **vals;
size_t params_count;
int error, rows_id;
@ -1224,8 +1225,6 @@ static int realtime_store_handler(const char *database, const char *table, va_li
#define QUERY "INSERT into '%q' (%s) VALUES (%s);"
/* \endcond */
tmp_keys2 = NULL;
tmp_vals2 = NULL;
for (i = 0; i < params_count; i++) {
if ( tmp_keys2 ) {
tmp_keys = sqlite_mprintf("%s, %q", tmp_keys2, params[i]);

Loading…
Cancel
Save