the nullptr update
This commit is contained in:
@@ -90,7 +90,7 @@ inline size_t read_file(const char *dir, const char *file, char *buffer, const s
|
||||
strcpy(nt, file); // copy to the null terminator of prev copy, append basically
|
||||
const int fd = open(path, O_RDONLY | O_CLOEXEC);
|
||||
if (fd < 0) {
|
||||
if (buffer != NULL) // if its null means we're just checking if it exists at all, so dont log it
|
||||
if (buffer != nullptr) // if its null means we're just checking if it exists at all, so dont log it
|
||||
applog(LOG_ERR, "Error reading %s", path);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user