]> sigrok.org Git - libsigrok.git/commitdiff
fluke-dmm: Code cleanup.
authorBert Vermeulen <redacted>
Thu, 2 Oct 2014 13:00:37 +0000 (15:00 +0200)
committerBert Vermeulen <redacted>
Thu, 2 Oct 2014 13:00:37 +0000 (15:00 +0200)
This cleans up a warning generated by clang's static analyzer.

src/hardware/fluke-dmm/api.c

index 55638e7c0894472c8a3a66301a0f78d749f959bd..edd737e2a09315252d9e99a271fcde4a680ebd59 100644 (file)
@@ -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);