Always read returnvalue from stat calls
{f}stat() can fail and reading the stat buffer without checking for status is bad hygiene. Ensure to always test return value and take the appropriate error path in case of stat error.
Showing
想要评论请 注册 或 登录