Skip to content
This repository has been archived by the owner on Jul 19, 2024. It is now read-only.

Commit

Permalink
fix(libsinsp): Fix a return value.
Browse files Browse the repository at this point in the history
Fix our sinsp_plugin::create return value on Windows.

Signed-off-by: Gerald Combs <[email protected]>
  • Loading branch information
geraldcombs authored and poiana committed Jul 3, 2022
1 parent 2c06395 commit 6bb2e22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion userspace/libsinsp/plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ std::shared_ptr<sinsp_plugin> sinsp_plugin::create(
errstr.append(msg_buf, strlen(msg_buf));
LocalFree(msg_buf);
}
return ret;
return nullptr;
}
#else
sinsp_plugin_handle handle = dlopen(filepath.c_str(), RTLD_LAZY);
Expand Down

0 comments on commit 6bb2e22

Please sign in to comment.