Properly initialize session

This commit is contained in:
Bert Vermeulen 2013-09-02 14:23:42 +02:00
parent e52bb9be83
commit fa93154fe6
1 changed files with 3 additions and 0 deletions

View File

@ -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: