Skip to content

Commit

Permalink
ft_dlvsym() check for NULL version
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfcw committed Mar 24, 2024
1 parent a3e9160 commit a047502
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/libfaketime.c
Original file line number Diff line number Diff line change
Expand Up @@ -3075,6 +3075,7 @@ void *ft_dlvsym(void *handle, const char *symbol, const char *version,
#else
// dlvsym does not exists, version is always NULL at compile time.
addr = dlsym(handle, symbol);
if (version != NULL) fprintf(stderr, "ft_dlvsym(): version is not NULL\n");
#endif
if (!addr && should_debug_dlsym) {
fprintf(stderr, "[FAKETIME_DEBUG_DLSYM] Cannot find symbol: %s\n", full_name);
Expand Down

0 comments on commit a047502

Please sign in to comment.