diff options
-rw-r--r-- | test/dlwrap.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/dlwrap.c b/test/dlwrap.c index 7b28c37..b104da4 100644 --- a/test/dlwrap.c +++ b/test/dlwrap.c @@ -79,6 +79,9 @@ find_wrapped_library(const char *filename) { unsigned i; + if (!filename) + return NULL; + for (i = 0; i < ARRAY_SIZE(wrapped_libs); i++) { if (strncmp(wrapped_libs[i].filename, filename, strlen(wrapped_libs[i].filename)) == 0) { |