]> sigrok.org Git - libsigrok.git/commitdiff
lecroy-xstream: Fix compiler warnings
authorSoeren Apel <redacted>
Sat, 25 Feb 2017 16:49:19 +0000 (17:49 +0100)
committerUwe Hermann <redacted>
Thu, 2 Mar 2017 20:22:10 +0000 (21:22 +0100)
src/hardware/lecroy-xstream/protocol.c

index 13a7191ac10959400a093854ad00eff4c2a7fa57..bf89f14cb8cecfc89fbfafdeabd28940cb1c373e 100644 (file)
@@ -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))) {