Skip to content

Commit

Permalink
Uninitialised variable read fix (#9873)
Browse files Browse the repository at this point in the history
  • Loading branch information
evanevanevanevannnn authored Sep 30, 2024
1 parent e8a4121 commit 1a998e8
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ std::shared_ptr<FormatConfig> MakeFormatConfig(const THashMap<TString, TString>&
EFileFormat format;
if (auto formatPtr = params.FindPtr("format"); formatPtr) {
format = ConvertFileFormat(*formatPtr);
} else {
throw yexception() << "format unspecified, use format parameter with type inferring";
}

if (auto delimiter = params.FindPtr("csvdelimiter"); delimiter) {
Expand Down

0 comments on commit 1a998e8

Please sign in to comment.