/*
- * This file is part of the sigrok project.
+ * This file is part of the libsigrok project.
*
* Copyright (C) 2013 Uwe Hermann <uwe@hermann-uwe.de>
*
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;