mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
initialize *color if passed as an argument
This commit is contained in:
parent
db5cb21105
commit
4e93beff92
1 changed files with 2 additions and 0 deletions
|
|
@ -466,6 +466,8 @@ netmap_dev_pager_ctor(void *handle, vm_ooffset_t size, vm_prot_t prot,
|
|||
if (netmap_verbose)
|
||||
D("handle %p size %jd prot %d foff %jd",
|
||||
handle, (intmax_t)size, prot, (intmax_t)foff);
|
||||
if (color)
|
||||
*color = 0;
|
||||
dev_ref(vmh->dev);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue