]> sigrok.org Git - libsigrok.git/commitdiff
Enable loading of session files without total probes defined
authorSoeren Apel <redacted>
Sun, 27 Mar 2016 21:09:05 +0000 (23:09 +0200)
committerUwe Hermann <redacted>
Sun, 27 Mar 2016 23:06:29 +0000 (01:06 +0200)
src/session_file.c

index 9b3712066678734d71eedee918d329408f71d752..9f5c5157f3f07d5410ec4326b01c06b6cbfec9ca 100644 (file)
@@ -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;