From: Bert Vermeulen Date: Wed, 27 Aug 2014 22:17:05 +0000 (+0200) Subject: Always consider input from stdin as a non-session format. X-Git-Tag: sigrok-cli-0.6.0~73 X-Git-Url: https://sigrok.org/gitweb/?p=sigrok-cli.git;a=commitdiff_plain;h=a48ddcc122a4ec8625c634041f4d635ff5935565 Always consider input from stdin as a non-session format. --- diff --git a/input.c b/input.c index b0458e5..f143cf9 100644 --- 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) {