#include <stdlib.h>
#include <string.h>
#include <glib.h>
-#include "config.h"
#include "libsigrok.h"
#include "libsigrok-internal.h"
if (!o->sdi->driver)
return SR_ERR_ARG;
- if (!(ctx = g_try_malloc0(sizeof(struct context))))
+ if (!(ctx = g_try_malloc0(sizeof(struct context)))) {
+ sr_err("output/float: Context malloc failed.");
return SR_ERR_MALLOC;
+ }
o->internal = ctx;