Commit 6b56d2d
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 091f978 commit 6b56d2d
1 file changed
+4
-0
lines changed| 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