projects
/
sigrok-cli.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
41602d3
)
properly check for result after output module data()
author
Bert Vermeulen
<bert@biot.com>
Tue, 5 Mar 2013 20:31:50 +0000
(21:31 +0100)
committer
Bert Vermeulen
<bert@biot.com>
Tue, 5 Mar 2013 20:31:50 +0000
(21:31 +0100)
sigrok-cli.c
patch
|
blob
|
history
diff --git
a/sigrok-cli.c
b/sigrok-cli.c
index eba6966ee877134e88f2fb30c3164a463d20efcb..bc293179b4c8130a32ebbc517bbe6207f5be79de 100644
(file)
--- a/
sigrok-cli.c
+++ b/
sigrok-cli.c
@@
-746,7
+746,7
@@
static void datafeed_in(const struct sr_dev_inst *sdi,
if (o->format->data && packet->type == o->format->df_type)
o->format->data(o, filter_out, filter_out_len,
&output_buf, &output_len);
- if (output_
buf
) {
+ if (output_
len
) {
fwrite(output_buf, 1, output_len, outfile);
fflush(outfile);
g_free(output_buf);