mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-09-25 19:34:16 +08:00
Fix Coverity Scan #1491937
This commit is contained in:
+1
-1
@@ -157,7 +157,7 @@ static void queue_plugin_msgs(void)
|
||||
void loop__update_next_event(time_t new_ms)
|
||||
{
|
||||
if(new_ms > 0 && new_ms < db.next_event_ms){
|
||||
db.next_event_ms = (int)new_ms;
|
||||
db.next_event_ms = new_ms;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -482,7 +482,7 @@ struct mosquitto_db{
|
||||
time_t now_s; /* Monotonic clock, where possible */
|
||||
time_t now_real_s; /* Read clock, for measuring session/message expiry */
|
||||
uint64_t node_id; /* for unique db ids */
|
||||
int next_event_ms; /* for mux timeout */
|
||||
time_t next_event_ms; /* for mux timeout */
|
||||
int msg_store_count;
|
||||
unsigned long msg_store_bytes;
|
||||
char *config_file;
|
||||
|
||||
Reference in New Issue
Block a user