Skip to content

Commit 2ee3265

Browse files
authored
Update nxt_conn_write.c
Fix Coverity report: CID 200492 (nginx#1 of 1): Uninitialized scalar variable (UNINIT)2. uninit_use_in_call: Using uninitialized value sb.last when calling nxt_sendbuf_mem_coalesce. [show details]
1 parent cdf900c commit 2ee3265

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/nxt_conn_write.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,7 @@ nxt_event_conn_io_sendbuf(nxt_conn_t *c, nxt_buf_t *b, size_t limit)
322322
sb.iobuf = iob;
323323
sb.nmax = NXT_IOBUF_MAX;
324324
sb.sync = 0;
325+
sb.last = 0;
325326
sb.size = 0;
326327
sb.limit = limit;
327328

0 commit comments

Comments
 (0)