1
0
mirror of https://github.com/netdata/netdata.git synced 2021-06-06 23:03:21 +03:00

Check for non ascii characters in health log (#11193)

* check for non ascii characters in health log

* use c for check

* correct check of c

* use unsigned char

* remove check for non-ascii
This commit is contained in:
Emmanuel Vasilakis
2021-06-02 15:47:15 +03:00
committed by GitHub
parent 428f5d0012
commit 83519b5df7

View File

@@ -368,7 +368,7 @@ static inline ssize_t health_alarm_log_read(RRDHOST *host, FILE *fp, const char
ae->last_repeat = last_repeat;
if (likely(entries > 28)) {
if (likely(entries > 30)) {
freez(ae->classification);
ae->classification = strdupz(pointers[28]);
if(!*ae->classification) { freez(ae->classification); ae->classification = NULL; }