Fixes to Coverity defects.

This commit is contained in:
Markus Makela
2015-03-10 17:08:04 +02:00
parent e937947f01
commit fbedad84af
7 changed files with 32 additions and 24 deletions

View File

@ -78,7 +78,7 @@ int main(int argc, char** argv)
goto report;
}
sprintf(query,"STOP SLAVE",databases[i]);
sprintf(query,"STOP SLAVE");
if(mysql_real_query(server,query,strlen(query)))
{
fprintf(stderr, "Failed to stop slave in %d: %s.\n",