aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSoeren Apel <soeren@apelpie.net>2017-02-25 17:49:19 +0100
committerUwe Hermann <uwe@hermann-uwe.de>2017-03-02 21:22:10 +0100
commit7002e64a54a5f8586f96f12a41005f8f8f60b2a6 (patch)
treebc748fe23179e8d16ac32b44759ff07afa863f63
parentd0b913eac47d8a1dc38ce84315b57f896bcf8c82 (diff)
lecroy-xstream: Fix compiler warnings
-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))) {