From: Uwe Hermann Date: Mon, 31 Dec 2012 20:05:11 +0000 (+0100) Subject: session: Fix compiler warning. X-Git-Tag: dsupstream~394 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=b7c3e8499c9dc499874876efdf5fb499368d6f10;p=libsigrok.git session: Fix compiler warning. session.c:258:6: warning: 'ret' may be used uninitialized in this function [-Wmaybe-uninitialized] --- diff --git a/session.c b/session.c index 9f8a4df7..440e3bd6 100644 --- 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) {