From: Bert Vermeulen Date: Thu, 2 Oct 2014 13:00:37 +0000 (+0200) Subject: fluke-dmm: Code cleanup. X-Git-Tag: libsigrok-0.4.0~899 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=f4d0020ec693e41513add7d4f186cdaf9dd3488d;p=libsigrok.git fluke-dmm: Code cleanup. This cleans up a warning generated by clang's static analyzer. --- diff --git a/src/hardware/fluke-dmm/api.c b/src/hardware/fluke-dmm/api.c index 55638e7c..edd737e2 100644 --- a/src/hardware/fluke-dmm/api.c +++ b/src/hardware/fluke-dmm/api.c @@ -176,6 +176,7 @@ static GSList *scan(GSList *options) if (!conn) return NULL; + devices = NULL; if (serialcomm) { /* Use the provided comm specs. */ devices = fluke_scan(conn, serialcomm);