Skip to content

CID 1508995: Unchecked return value from library #10221

@maskit

Description

@maskit
 95bool
 96Config::setLastConfigChange()
 97{
 98  struct stat s;
 99  time_t oldLastmtime = m_lastmtime;
100
101  memset(&s, 0, sizeof(s));
   	
CID 1508995 (#1 of 1): Unchecked return value from library (CHECKED_RETURN)
1. check_return: Calling stat(this->m_filename.c_str(), &s) without checking return value. This library function may fail and return an error code. [Note: The source code implementation of the function has been overridden by a builtin model.]
102  stat(m_filename.c_str(), &s);
103
104  m_lastmtime = s.st_mtime;

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions