test: Avoid segfaulting when nvidia driver does a dlopen(RTLD_DEFAULT)

macos/v1.5.9
Eric Anholt 11 years ago
parent 7f5fc047da
commit 46da7790b2
  1. 3
      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) {

Loading…
Cancel
Save