Commit b33162d
authored
unix: fix use of uninitialized variable (libuv#4924)
The `flags` argument to `uv__udp_recvmsg_errqueue` was not initialized
in all code paths. Shuffle code around to make the control flow more
obvious (at the cost of a less legible diff.)
Also fixes an unused label warning when building on systems that aren't
Linux.
Introduced last month in commit 80a5e3b, "linux: add MSG_ERRQUEUE
ipv4/ipv6 udp support".1 parent 12d1ed1 commit b33162d
1 file changed
+15
-25
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
326 | 326 | | |
327 | 327 | | |
328 | 328 | | |
329 | | - | |
| 329 | + | |
330 | 330 | | |
331 | | - | |
332 | 331 | | |
333 | 332 | | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | | - | |
339 | | - | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
| 333 | + | |
| 334 | + | |
349 | 335 | | |
350 | 336 | | |
351 | 337 | | |
352 | 338 | | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
360 | 343 | | |
361 | | - | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
362 | 352 | | |
363 | 353 | | |
364 | 354 | | |
| |||
0 commit comments