From: Soeren Apel Date: Sun, 27 Mar 2016 21:09:05 +0000 (+0200) Subject: Enable loading of session files without total probes defined X-Git-Tag: libsigrok-0.5.0~538 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=f476dd2d2bcd482e76e9d174706e494a248156ff;p=libsigrok.git Enable loading of session files without total probes defined --- diff --git a/src/session_file.c b/src/session_file.c index 9b371206..9f5c5157 100644 --- a/src/session_file.c +++ b/src/session_file.c @@ -234,6 +234,8 @@ SR_API int sr_session_load(struct sr_context *ctx, const char *filename, return ret; } + total_channels = 0; + error = NULL; ret = SR_OK; file_has_logic = FALSE;