- if (list_empty(&ctx->outstanding_streams))
- return 0;
- cur_lte = container_of(ctx->outstanding_streams.next,
- struct wim_lookup_table_entry,
- being_compressed_list);
- #ifdef ENABLE_MORE_DEBUG
- DEBUG2("Advance to stream:");
- print_lookup_table_entry(cur_lte, stderr);
- #endif
+ if (list_empty(&ctx->outstanding_streams)) {
+ cur_lte = NULL;
+ } else {
+ cur_lte = container_of(ctx->outstanding_streams.next,
+ struct wim_lookup_table_entry,
+ being_compressed_list);
+ #ifdef ENABLE_MORE_DEBUG
+ DEBUG2("Advance to stream:");
+ print_lookup_table_entry(cur_lte, stderr);
+ #endif
+ }