the nullptr update

This commit is contained in:
2026-07-03 00:49:26 +02:00
parent 88387704e1
commit 5609ae5055
4 changed files with 8 additions and 8 deletions

View File

@@ -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;
}