]> sigrok.org Git - sigrok-cli.git/commitdiff
Always consider input from stdin as a non-session format.
authorBert Vermeulen <redacted>
Wed, 27 Aug 2014 22:17:05 +0000 (00:17 +0200)
committerBert Vermeulen <redacted>
Thu, 28 Aug 2014 10:34:41 +0000 (12:34 +0200)
input.c

diff --git a/input.c b/input.c
index b0458e5eb20baef067da62d9715ce81b2d324723..f143cf9b513f10b01575413f990bb3e8b8e33e35 100644 (file)
--- a/input.c
+++ b/input.c
@@ -142,7 +142,7 @@ void load_input_file(void)
        GSList *devices;
        int ret;
 
-       if (!strcmp(opt_input_file, "-") || sr_session_load(opt_input_file, &session) == SR_OK) {
+       if (strcmp(opt_input_file, "-") || sr_session_load(opt_input_file, &session) == SR_OK) {
                /* sigrok session file */
                ret = sr_session_dev_list(session, &devices);
                if (ret != SR_OK || !devices->data) {