]> sigrok.org Git - libsigrok.git/blobdiff - output/ols.c
sr: Mark API functions with SR_API/SR_PRIV.
[libsigrok.git] / output / ols.c
index 16b288aca1bdf2116edc62176baa43f29b5239f9..92d1d106de57b9ab09542102401b0a7b39869625 100644 (file)
@@ -30,7 +30,6 @@
 #include <glib.h>
 #include "sigrok.h"
 #include "sigrok-internal.h"
-#include "config.h"
 
 struct context {
        GString *header;
@@ -85,8 +84,7 @@ static int event(struct sr_output *o, int event_type, char **data_out,
        ctx = o->internal;
 
        if (ctx && event_type == SR_DF_END) {
-               if (ctx->header)
-                       g_string_free(ctx->header, TRUE);
+               g_string_free(ctx->header, TRUE);
                free(o->internal);
                o->internal = NULL;
        }