NG_NODE_NAME(node) is always not NULL. Use correct macro.

Submitted by:	Dmitry Luhtionov <dmitryluhtionov gmail.com>
This commit is contained in:
glebius 2014-11-02 05:51:31 +00:00
parent 79f817d7d7
commit 14dc804e64

View File

@ -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));