log: check localtime_r(2) is not NULL (#1325)
log: check localtime_r(2) is not NULL (#1325)

Return value of a function 'localtime_r' is dereferenced from 356 line

without checking whether the return value of localtime_r(2) is NULL or not

Signed-off-by: aniketoss <b8c96b4d32c0a574a679184665fa7ed976cee871@naver.com>
nokute78/fluent-bit,nokute78/fluent-bit,fluent/fluent-bit,fluent/fluent-bit,fluent/fluent-bit,fluent/fluent-bit,nokute78/fluent-bit,nokute78/fluent-bit,fluent/fluent-bit,fluent/fluent-bit,nokute78/fluent-bit,fluent/fluent-bit,nokute78/fluent-bit,nokute78/fluent-bit,fluent/fluent-bit,fluent/fluent-bit,nokute78/fluent-bit,fluent/fluent-bit,nokute78/fluent-bit,fluent/fluent-bit,nokute78/fluent-bit,nokute78/fluent-bit,nokute78/fluent-bit,fluent/fluent-bit