From: Bert Vermeulen Date: Thu, 24 Apr 2014 18:58:35 +0000 (+0200) Subject: Fix saving to session file. X-Git-Tag: sigrok-cli-0.5.0~9 X-Git-Url: https://sigrok.org/gitweb/?p=sigrok-cli.git;a=commitdiff_plain;h=f4ffd032cfb0b8fe927d82bdba136f357b8dad79 Fix saving to session file. --- diff --git a/session.c b/session.c index 7b2aaf4..598ef00 100644 --- a/session.c +++ b/session.c @@ -300,7 +300,7 @@ void datafeed_in(const struct sr_dev_inst *sdi, break; } - if (o && !opt_pds) { + if (o && outfile && !opt_pds) { if (sr_output_send(o, packet, &out) == SR_OK && out) { fwrite(out->str, 1, out->len, outfile); fflush(outfile);