From: Bert Vermeulen Date: Mon, 2 Sep 2013 12:23:42 +0000 (+0200) Subject: Properly initialize session X-Git-Tag: libsigrok-0.2.2~65 X-Git-Url: http://sigrok.org/gitweb/?p=libsigrok.git;a=commitdiff_plain;h=fa93154fe6cb0962c1a1551dacb6619a7b3f4810 Properly initialize session --- diff --git a/backend.c b/backend.c index ca1460f8..42817158 100644 --- a/backend.c +++ b/backend.c @@ -23,6 +23,8 @@ #include "libsigrok.h" #include "libsigrok-internal.h" +extern struct sr_session *session; + /** * @mainpage libsigrok API * @@ -366,6 +368,7 @@ SR_API int sr_init(struct sr_context **ctx) *ctx = context; context = NULL; + session = NULL; ret = SR_OK; done: