return SR_ERR_ARG;
}
- if (!(drvc = g_try_malloc0(sizeof(struct drv_context)))) {
+ if (!(drvc = g_try_malloc(sizeof(struct drv_context)))) {
sr_err("%sDriver context malloc failed.", prefix);
return SR_ERR_MALLOC;
}
drvc->sr_ctx = sr_ctx;
+ drvc->instances = NULL;
di->priv = drvc;
return SR_OK;