Commit ce4e632
Fix C6101: zero context_ptr on error paths in get_network_context
The _Out_writes_ SAL annotation on context_ptr requires the buffer
to be initialized on all paths. Zero the output buffer upfront to
satisfy the code analyzer on early-return error paths.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 4c29bce commit ce4e632
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
353 | 353 | | |
354 | 354 | | |
355 | 355 | | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
356 | 360 | | |
357 | 361 | | |
358 | 362 | | |
| |||
0 commit comments