From: Soeren Apel Date: Sat, 25 Feb 2017 16:49:19 +0000 (+0100) Subject: lecroy-xstream: Fix compiler warnings X-Git-Tag: libsigrok-0.5.0~108 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=7002e64a54a5f8586f96f12a41005f8f8f60b2a6;p=libsigrok.git lecroy-xstream: Fix compiler warnings --- diff --git a/src/hardware/lecroy-xstream/protocol.c b/src/hardware/lecroy-xstream/protocol.c index 13a7191a..bf89f14c 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))) {