Commit 264d046
committed
Fix invalid use of dlopen()
When attempting to get a handle for the `libOpenCL.so` library in order
to call `dlsym()` invalid arguments were set so `dlopen()` always
returned null. This just happened to work due to the value of
`RTLD_DEFAULT` being 0 so the `dlsym()` calls succeeded. This patch
removes the invalid `dlopen()` usage and explicitly uses `RTLD_DEFAULT`
instead of the null `handle`.1 parent b841691 commit 264d046
1 file changed
+7
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
38 | 39 | | |
39 | | - | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
43 | | - | |
| 44 | + | |
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
| |||
0 commit comments