[report] Fix odin report crash if /usr/lib/os-release doesn't exist.
This commit is contained in:
1 parent
e6a7b85da4
commit
2b5bc1d558
2 files changed
+3
-2
No files matched your search
@@ -6093,6 +6093,7 @@ gbFileContents gb_file_read_contents(gbAllocator a, b32 zero_terminate, char con
|
||||
}
|
||||
|
||||
void gb_file_free_contents(gbFileContents *fc) {
|
||||
if (fc == NULL || fc->size == 0) return;
|
||||
GB_ASSERT_NOT_NULL(fc->data);
|
||||
gb_free(fc->allocator, fc->data);
|
||||
fc->data = NULL;
|
||||
|
||||
Reference in new issue
Block a user