NG_NODE_NAME(node) is always not NULL. Use correct macro.
Submitted by: Dmitry Luhtionov <dmitryluhtionov gmail.com>
This commit is contained in:
parent
79f817d7d7
commit
14dc804e64
@ -1046,7 +1046,7 @@ ng_bridge_nodename(node_p node)
|
||||
{
|
||||
static char name[NG_NODESIZ];
|
||||
|
||||
if (NG_NODE_NAME(node) != NULL)
|
||||
if (NG_NODE_HAS_NAME(node))
|
||||
snprintf(name, sizeof(name), "%s", NG_NODE_NAME(node));
|
||||
else
|
||||
snprintf(name, sizeof(name), "[%x]", ng_node2ID(node));
|
||||
|
Loading…
Reference in New Issue
Block a user