]> sigrok.org Git - libsigrok.git/blobdiff - bindings/cxx/classes.cpp
bindings/cxx/classes.cpp: Fix a typo.
[libsigrok.git] / bindings / cxx / classes.cpp
index c08279051b18377726bde6ed20e80f01ba6e4601..0916a2dafb84c1d1ec9f28e39488eb03688106ab 100644 (file)
@@ -888,7 +888,7 @@ Session::Session(shared_ptr<Context> context) :
        _context(context),
        _saving(false)
 {
-       check(sr_session_new(&_structure));
+       check(sr_session_new(context->_structure, &_structure));
        _context->_session = this;
 }