]> sigrok.org Git - libsigrok.git/commitdiff
session: Fix compiler warning.
authorUwe Hermann <redacted>
Mon, 31 Dec 2012 20:05:11 +0000 (21:05 +0100)
committerUwe Hermann <redacted>
Mon, 31 Dec 2012 20:05:11 +0000 (21:05 +0100)
session.c:258:6: warning: 'ret' may be used uninitialized in this
function [-Wmaybe-uninitialized]

session.c

index 9f8a4df797728e401aa7b5e42fe54408b003f945..440e3bd64970db1caab999e873b392f989f1b1d9 100644 (file)
--- a/session.c
+++ b/session.c
@@ -271,6 +271,7 @@ SR_API int sr_session_start(void)
 
        sr_info("session: starting");
 
+       ret = SR_OK;
        for (l = session->devs; l; l = l->next) {
                sdi = l->data;
                if ((ret = sdi->driver->dev_acquisition_start(sdi, sdi)) != SR_OK) {