Changing triggers (e.g. from low to high) would sometimes cause the
acquisition to seemingly "hang" due to missing variable initializations
(in reality the device would wait for incorrect triggers and/or on
incorrect channels).
This fixes bug #1535.
if (!(trigger = sr_session_trigger_get(sdi->session)))
return SR_OK;
+ memset(g_trigger_status, 0, sizeof(g_trigger_status));
+ g_trigger_edge = 0;
+
for (l = trigger->stages; l; l = l->next) {
stage = l->data;
for (m = stage->matches; m; m = m->next) {