Skip to content

Commit

Permalink
Prevent access violation for missing DyKnow with dir
Browse files Browse the repository at this point in the history
  • Loading branch information
eschan145 authored Jan 28, 2025
1 parent f10dae4 commit 26a65d5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -641,6 +641,8 @@ DK_API const char* get_executables_in_folder(const char* folder_path) {
`validate()` if it doesn't.
*/

assert(std::filesystem::exists(folder_path));

static std::string result;
result.clear();

Expand Down

0 comments on commit 26a65d5

Please sign in to comment.