We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6986c63 commit dbb6d86Copy full SHA for dbb6d86
src/drivers.c
@@ -52,6 +52,5 @@ SR_API void sr_drivers_init(struct sr_context *ctx)
52
drivers < sr_driver_list__stop; drivers++)
53
g_array_append_val(array, *drivers);
54
#endif
55
- ctx->driver_list = (struct sr_dev_driver **)array->data;
56
- g_array_free(array, FALSE);
+ ctx->driver_list = (struct sr_dev_driver **)g_array_free(array, FALSE);
57
}
0 commit comments