]> sigrok.org Git - libsigrok.git/commit
bindings: Session::set_trigger(): Fix segfault condition.
authorUwe Hermann <redacted>
Mon, 24 Nov 2014 00:11:17 +0000 (01:11 +0100)
committerUwe Hermann <redacted>
Mon, 24 Nov 2014 00:11:17 +0000 (01:11 +0100)
commite835e8080b6278137ea90f3b10e5d8bc51136a91
tree89be731e54e81b90e7fd54f3e5f519962af0cd1c
parent9f42e2e6beb6f09b137501bcf402b36a64dcd211
bindings: Session::set_trigger(): Fix segfault condition.

sr_session_trigger_set(sess, NULL) is a valid thing to do, meaning that
any trigger shall be removed from the session.

This closes bugs #491 and #496.
bindings/cxx/classes.cpp