- digital = inc->feed.last.digital;
- rc = addto_feed_buffer_logic(in, digital, count);
- if (rc)
- return rc;
- inc->feed.last.time = next_time;
+ if (count) {
+ digital = inc->feed.last.digital;
+ rc = addto_feed_buffer_logic(in, digital, count);
+ if (rc)
+ return rc;
+ inc->feed.last.time = next_time;
+ }
/* Clear internal state, but keep what .init() has provided. */
save_opts = inc->options;
/* Clear internal state, but keep what .init() has provided. */
save_opts = inc->options;
memset(inc, 0, sizeof(*inc));
inc->options = save_opts;
memset(inc, 0, sizeof(*inc));
inc->options = save_opts;