error = FALSE;
range = NULL;
- probelist = g_malloc0(max_probes * sizeof(char *));
+ if (!(probelist = g_try_malloc0(max_probes * sizeof(char *)))) {
+ /* TODO: Handle errors. */
+ }
tokens = g_strsplit(probestring, ",", max_probes);
for (i = 0; tokens[i]; i++) {
plugin = p->data;
if (strcmp(plugin->name, devicestring))
continue;
- num_devices = sr_init_hwplugins(plugin);
+ num_devices = sr_init_hwplugin(plugin);
if (num_devices == 1) {
devices = sr_device_list();
device = devices->data;