prevent dereferencing null pointer
Costa Tsaousis (ktsaou) committed
Oct 17, 2016 at 00:00 UTC
10963ea9ebca7eb6b9da246451e275254eb6bfb1
1 file changed
+1
-2
src/health.c
+1
-2
@@ -219,8 +219,7 @@ static inline ssize_t health_alarm_log_read(RRDHOST *host, FILE *fp, const char
219
220
// alarms should be added in the right order
221
if(unlikely(unique_id < max_unique_id)) {
222
- error("Health: line %zu of file '%s' has alarm log entry with %u in wrong order.", line
223
- , filename, ae->unique_id);
222
+ error("Health: line %zu of file '%s' has alarm log entry with %u in wrong order.", line, filename, unique_id);
223
}
224
225
ae = callocz(1, sizeof(ALARM_ENTRY));