handle localtime errors in ctime
ctime passes the result from localtime directly to asctime. But in case of error, localtime returns 0. This causes an error (NULL pointer dereference) in asctime. based on patch by Omer Anson.
Showing
想要评论请 注册 或 登录