Skip to content

Commit

Permalink
Merge pull request #3945 from Sonicadvance1/config_nonnullable
Browse files Browse the repository at this point in the history
Config: Little assume non-null check
  • Loading branch information
alyssarosenzweig authored Aug 11, 2024
2 parents 94bb7eb + f3811f0 commit f40bc13
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions FEXCore/include/FEXCore/Config/Config.h
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ class FEX_DEFAULT_VISIBILITY Layer {
}

void Set(ConfigOption Option, const char* Data) {
LOGMAN_THROW_AA_FMT(Data != nullptr, "Data can't be null");
OptionMap[Option].emplace_back(fextl::string(Data));
}

Expand Down

0 comments on commit f40bc13

Please sign in to comment.