/*
- * This file is part of the sigrok project.
+ * This file is part of the libsigrok project.
*
* Copyright (C) 2013 Bert Vermeulen <bert@biot.com>
* Copyright (C) 2011 HÃ¥vard Espeland <gus@ping.uio.no>
ret = SR_ERR_MALLOC;
}
+ if (mode == MODE_ASCII &&
+ !(ctx->prevsample = g_try_malloc0(num_probes / 8))) {
+ sr_err("%s: ctx->prevsample malloc failed", __func__);
+ ret = SR_ERR_MALLOC;
+ }
+
err:
if (ret != SR_OK) {
g_free(ctx->header);