Murai Takashi 8cd3603b99 compat/freebsd_network: Fix Use of zero-allocated memory
If device is not found, 'list' is allocated to size 0.
So, modify function to return 0 as FreeBSD's subr_bus.c
when 'count' is 0.
Pointed out by Clang Static Analyzer.

Change-Id: Ice24ae939bfcdb6e1276a86dba40d0b689030fbb
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3753
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-03-02 14:19:54 +00:00
..
2020-10-13 15:19:14 +00:00
2020-04-06 07:02:00 +00:00
2020-11-02 07:20:28 +00:00