- ctx->channels = g_malloc(
- sizeof(struct sr_channel) * ctx->channel_count);
- ctx->channel_outputs = g_malloc(
- sizeof(GString *) * ctx->channel_count);
+ ctx->channels = g_malloc0(
+ sizeof(ctx->channels[0]) * ctx->channel_count);
+ ctx->channel_outputs = g_malloc0(
+ sizeof(ctx->channel_outputs[0]) * ctx->channel_count);