aboutsummaryrefslogtreecommitdiff
path: root/src/hardware/lecroy-xstream/protocol.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/hardware/lecroy-xstream/protocol.c')
-rw-r--r--src/hardware/lecroy-xstream/protocol.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/hardware/lecroy-xstream/protocol.c b/src/hardware/lecroy-xstream/protocol.c
index 13a7191..bf89f14 100644
--- a/src/hardware/lecroy-xstream/protocol.c
+++ b/src/hardware/lecroy-xstream/protocol.c
@@ -409,6 +409,7 @@ SR_PRIV int lecroy_xstream_state_get(struct sr_dev_inst *sdi)
if (sr_scpi_get_string(sdi->conn, "TRIG_SELECT?", &tmp_str) != SR_OK)
return SR_ERR;
+ key = tmpp = NULL;
tmp_str2 = tmp_str;
i = 0;
while((p = strtok_r(tmp_str2, ",", &tmpp))) {