From: Uwe Hermann Date: Sun, 9 May 2010 13:12:10 +0000 (+0200) Subject: output_gnuplot: Simplify event(). X-Git-Tag: libsigrok-0.1.0~511 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=caf62e22c4dad949c8b1282e621e2dbf47daac30;p=libsigrok.git output_gnuplot: Simplify event(). --- diff --git a/output/output_gnuplot.c b/output/output_gnuplot.c index 3a3e7496..e64cf700 100644 --- a/output/output_gnuplot.c +++ b/output/output_gnuplot.c @@ -117,8 +117,6 @@ static int event(struct output *o, int event_type, char **data_out, uint64_t *length_out) { struct context *ctx; - char *outbuf; - int outlen = 1; /* FIXME */ ctx = o->internal; switch (event_type) { @@ -126,11 +124,8 @@ static int event(struct output *o, int event_type, char **data_out, /* TODO */ break; case DF_END: - outbuf = calloc(1, 1); /* FIXME */ - if (outbuf == NULL) - return SIGROK_ERR_MALLOC; - *data_out = outbuf; - *length_out = outlen; + *data_out = NULL; + *length_out = 0; free(o->internal); o->internal = NULL; break;