Fix potential segfaults on localtime error
localtime can return null on error, therefore we need to check it
before dereferencing.
Signed-off-by: NRobert Drab <robert.drab@huawei.com>
Showing
想要评论请 注册 或 登录
localtime can return null on error, therefore we need to check it
before dereferencing.
Signed-off-by: NRobert Drab <robert.drab@huawei.com>