]> sigrok.org Git - libsigrok.git/commitdiff
output_gnuplot: Simplify event().
authorUwe Hermann <redacted>
Sun, 9 May 2010 13:12:10 +0000 (15:12 +0200)
committerUwe Hermann <redacted>
Sun, 9 May 2010 20:06:28 +0000 (22:06 +0200)
output/output_gnuplot.c

index 3a3e7496f08fefea0f023e5eff775a5ad8807c8f..e64cf700e12103382cb5f21ea53ce43d2223a0ea 100644 (file)
@@ -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;