mirror of
https://github.com/openvswitch/ovs
synced 2025-10-25 15:07:05 +00:00
Consistently write null pointer constants as NULL instead of 0.
Found with sparse.
This commit is contained in:
@@ -55,7 +55,7 @@ rtnetlink_create(int multicast_group, rtnetlink_parse_func *parse,
|
||||
struct rtnetlink *rtn;
|
||||
|
||||
rtn = xzalloc(sizeof *rtn);
|
||||
rtn->notify_sock = 0;
|
||||
rtn->notify_sock = NULL;
|
||||
rtn->multicast_group = multicast_group;
|
||||
rtn->parse = parse;
|
||||
rtn->change = change;
|
||||
|
||||
Reference in New Issue
Block a user