Skip to content

Commit

Permalink
fix odin report macos version reporting unknown when release isn't a …
Browse files Browse the repository at this point in the history
…3 point
  • Loading branch information
laytan committed Feb 5, 2025
1 parent 919e9a8 commit b86d2c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bug_report.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -532,9 +532,9 @@ gb_internal void report_os_info() {
return;
}

uint32_t major, minor, patch;
uint32_t major, minor, patch = 0;

if (sscanf(cast(const char *)sw_vers, "%u.%u.%u", &major, &minor, &patch) != 3) {
if (sscanf(cast(const char *)sw_vers, "%u.%u.%u", &major, &minor, &patch) < 1) {
gb_printf("macOS Unknown\n");
return;
}
Expand Down

0 comments on commit b86d2c3

Please sign in to comment.