Skip to content

Commit

Permalink
fix: check for empty suffix
Browse files Browse the repository at this point in the history
Co-authored-by: Robert Hensing <robert@roberthensing.nl>
  • Loading branch information
tomberek and roberth committed Aug 25, 2024
1 parent 52c0ef2 commit 4e8d4a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libexpr/eval.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3087,7 +3087,7 @@ SourcePath EvalState::findFile(const LookupPath & lookupPath, const std::string_
if (!rOpt) continue;
auto r = *rOpt;

auto res = r / suffix;
auto res = r / CanonPath(suffix);
if (res.pathExists()) return res;
}

Expand Down

0 comments on commit 4e8d4a2

Please sign in to comment.