Skip to content

Commit

Permalink
Fix type of dl_info variable in Initialize function
Browse files Browse the repository at this point in the history
Changed the type of the `dl_info` variable from `Dl_info` to `struct Dl_info` in the `Initialize` function. This ensures compatibility and correctness with the `dladdr` function call.
  • Loading branch information
ptahmose committed Oct 18, 2024
1 parent c3a21b6 commit 4628fad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OctaveMex/octavelibczi.c
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ static void Initialize()
#else
static const char DllName[] = "libmexlibczi.so";

Dl_info dl_info;
struct Dl_info dl_info;
if (dladdr((void*)&Initialize, &dl_info) == 0)
{
mexErrMsgIdAndTxt("MATLAB:mexlibCZI:dladdrFailed", "Failed to get the handle of the module.");
Expand Down

0 comments on commit 4628fad

Please sign in to comment.