session: Fix compiler warning.

session.c:258:6: warning: 'ret' may be used uninitialized in this
function [-Wmaybe-uninitialized]
This commit is contained in:
Uwe Hermann 2012-12-31 21:05:11 +01:00
parent 6375e1c3eb
commit b7c3e8499c
1 changed files with 1 additions and 0 deletions

View File

@ -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) {