diff options
author | glebius <glebius@FreeBSD.org> | 2011-04-17 16:31:21 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2011-04-17 16:31:21 +0000 |
commit | 92630a5a271c45d151f4a01f2653027de2dffe1c (patch) | |
tree | 41e023a038acbc99968c55bac93d205e1c84de5a /sys/netgraph | |
parent | 4ef25c883e5478b277d1dd30131a89b0fb577390 (diff) | |
download | FreeBSD-src-92630a5a271c45d151f4a01f2653027de2dffe1c.zip FreeBSD-src-92630a5a271c45d151f4a01f2653027de2dffe1c.tar.gz |
Fix error where error variable was assigned result of comparison,
instead of function return value.
Submitted by: Przemyslaw Frasunek <przemyslaw frasunek.com>
MFC after: 4 days
Diffstat (limited to 'sys/netgraph')
-rw-r--r-- | sys/netgraph/ng_base.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netgraph/ng_base.c b/sys/netgraph/ng_base.c index 58c0d21..f67f247f 100644 --- a/sys/netgraph/ng_base.c +++ b/sys/netgraph/ng_base.c @@ -596,7 +596,7 @@ ng_make_node(const char *typename, node_p *nodepp) */ if (type->constructor != NULL) { if ((error = ng_make_node_common(type, nodepp)) == 0) { - if ((error = ((*type->constructor)(*nodepp)) != 0)) { + if ((error = ((*type->constructor)(*nodepp))) != 0) { NG_NODE_UNREF(*nodepp); } } |