Commit 08043c6
committed
oscmain: fix segfault by properly checking error codes
iio_create_context() now returns an error pointer instead of NULL when a
context is not properly created. This was later leading to a segmentation
fault.
Signed-off-by: Nuno Sá <[email protected]>1 parent 55b6470 commit 08043c6
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
211 | | - | |
| 211 | + | |
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
| |||
0 commit comments