diff options
author | Eric Anholt <eric@anholt.net> | 2014-03-27 17:32:16 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2014-03-27 17:32:16 -0700 |
commit | 46da7790b2f327d49b20597c92a10de20a8efba3 (patch) | |
tree | 001e7f5d56f4a03db7b8abfb4b1128df32d81c09 /test | |
parent | 7f5fc047daa0054c1d71d6206db4fd9b26a4ff7c (diff) | |
download | libepoxy-46da7790b2f327d49b20597c92a10de20a8efba3.tar.gz |
test: Avoid segfaulting when nvidia driver does a dlopen(RTLD_DEFAULT)
Diffstat (limited to 'test')
-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) { |