Fixes to coverity defects from 85514 up to 85529.

This commit is contained in:
Markus Makela
2015-01-15 14:06:41 +02:00
parent 88a26f03ab
commit 533042b61a
3 changed files with 70 additions and 19 deletions

View File

@ -1118,7 +1118,8 @@ char** skygw_get_table_names(GWBUF* querybuf, int* tblsize, bool fullnames)
lex->current_select = lex->current_select->next_select_in_list();
} /*< while(lex->current_select) */
retblock:
*tblsize = i;
if(tblsize)
*tblsize = i;
return tables;
}
@ -1229,6 +1230,7 @@ inline void add_str(char** buf, int* buflen, int* bufsize, char* str)
}
if(*buflen > 0){
if(*buf)
strcat(*buf," ");
}
strcat(*buf,str);