Fixes to Coverity defects: 72662 82143 82144 82145 82348 82349
This commit is contained in:
@ -406,7 +406,7 @@ GWBUF *clone = NULL;
|
||||
if (my_session->residual < 0)
|
||||
my_session->residual = 0;
|
||||
}
|
||||
else if (my_session->active && (ptr = modutil_get_SQL(queue) != NULL))
|
||||
else if ( my_session->active && (ptr = modutil_get_SQL(queue)) != NULL)
|
||||
{
|
||||
if ((my_instance->match == NULL ||
|
||||
regexec(&my_instance->re, ptr, 0, NULL, 0) == 0) &&
|
||||
|
||||
@ -1147,6 +1147,9 @@ int compare_files(int a,int b)
|
||||
return 1;
|
||||
}
|
||||
|
||||
memset(in,0,4098);
|
||||
memset(exp,0,4098);
|
||||
|
||||
while(fdgets(a,in,4098) && fdgets(b,exp,4098)){
|
||||
if(strcmp(in,exp)){
|
||||
printf("The files differ at line %d:\n%s\n-------------------------------------\n%s\n",line,in,exp);
|
||||
|
||||
@ -606,7 +606,7 @@ MONITOR_SERVERS *ptr;
|
||||
int replication_heartbeat = handle->replicationHeartbeat;
|
||||
int detect_stale_master = handle->detectStaleMaster;
|
||||
int num_servers=0;
|
||||
MONITOR_SERVERS *root_master;
|
||||
MONITOR_SERVERS *root_master = NULL;
|
||||
size_t nrounds = 0;
|
||||
|
||||
if (mysql_thread_init())
|
||||
|
||||
@ -173,7 +173,7 @@ HTTPD_session *client_data = NULL;
|
||||
|
||||
i = 0;
|
||||
|
||||
while (ISspace(buf[j]) && (j < sizeof(buf))) {
|
||||
while ( (j < sizeof(buf)) && ISspace(buf[j])) {
|
||||
j++;
|
||||
}
|
||||
|
||||
@ -354,6 +354,7 @@ int n_connect = 0;
|
||||
n_connect++;
|
||||
}
|
||||
}
|
||||
close(so);
|
||||
}
|
||||
|
||||
return n_connect;
|
||||
|
||||
Reference in New Issue
Block a user