Enrico Weigelt, metux IT consult
71b25119f7
os: ResetHosts(): fix warning on potentially unitialized memory
...
> In function ‘ConvertAddr’,
> inlined from ‘ResetHosts’ at ../os/access.c:1014:26:
> ../os/access.c:1540:25: warning: ‘saddr’ may be used uninitialized [-Wmaybe-uninitialized]
> 1540 | if (16777343 == *(long *) &((struct sockaddr_in *) saddr)->sin_addr)
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ../os/access.c: In function ‘ResetHosts’:
> ../os/access.c:908:7: note: ‘saddr’ declared here
> 908 | } saddr;
> | ^~~~~
The union isn't needed at all, we're just using one of the fields anyways.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-12-04 15:10:43 +01:00
..
2025-12-04 15:10:43 +01:00
2025-09-29 10:53:15 +02:00
2025-09-26 15:56:47 +02:00
2025-09-22 12:00:14 +02:00
2025-11-27 10:45:36 +01:00
2025-02-07 16:58:02 +02:00
2025-02-17 19:32:48 +00:00
2024-10-10 13:38:31 +00:00
2025-11-20 19:22:44 +01:00
2025-07-18 22:24:55 +02:00
2025-06-12 17:21:46 +02:00
2025-06-12 17:21:46 +02:00
2025-11-27 19:36:00 +01:00
2025-11-27 10:44:58 +01:00
2025-06-12 17:21:44 +02:00
2025-11-08 10:46:03 +01:00
2025-11-27 19:36:00 +01:00
2025-11-27 19:36:00 +01:00
2025-09-26 11:50:59 +02:00
2025-09-26 15:56:47 +02:00
2025-11-27 19:58:33 +01:00
2025-12-03 13:15:58 +01:00
2025-09-12 15:37:13 +02:00
2025-06-12 16:52:56 +02:00
2025-11-27 19:36:00 +01:00
2025-11-27 10:44:58 +01:00
2025-07-31 17:41:20 +02:00
2025-07-31 15:22:07 +02:00
2025-11-08 10:46:03 +01:00
2025-11-08 10:46:03 +01:00
2025-07-18 04:51:30 +02:00
2024-10-10 13:38:31 +00:00
2024-09-01 20:23:10 +00:00
2024-07-26 22:26:07 +00:00
2024-07-26 22:26:07 +00:00
2025-06-12 17:21:46 +02:00
2024-10-10 13:38:31 +00:00
2025-06-12 17:21:44 +02:00
2024-10-10 13:38:31 +00:00
2024-10-10 13:38:31 +00:00
2025-06-12 16:49:45 +02:00
2025-12-03 13:15:58 +01:00
2025-11-27 10:44:23 +01:00
2025-11-08 10:46:03 +01:00
2025-11-27 19:36:00 +01:00
2025-06-12 16:52:56 +02:00
2025-11-20 19:22:44 +01:00
2025-11-20 19:22:44 +01:00
2025-08-07 16:57:43 +02:00
2025-08-07 16:57:43 +02:00
2025-11-07 09:31:48 +01:00
2025-07-31 14:50:05 +02:00
2025-07-31 15:28:08 +02:00
2025-06-12 16:49:45 +02:00
2025-09-24 16:34:33 +02:00
2025-09-24 15:53:57 +02:00
2025-09-24 15:53:57 +02:00
2025-09-24 15:53:57 +02:00
2025-09-25 16:40:43 +02:00
2025-11-17 13:16:45 +01:00