summaryrefslogtreecommitdiffstats
path: root/src/tools
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2017-03-02 07:38:52 -0500
committerDamjan Marion <dmarion.lists@gmail.com>2017-03-02 20:38:41 +0000
commita80ab84531fb1abd1e896d1adfa7e50fed80db39 (patch)
treef456cec740be3dce3dc71e9f6f698607b995f89f /src/tools
parent0eb22efbb54fe2e56ce8928476fffa381cb1ca8b (diff)
VPP-608: fix coverity warning in vppapigen
Change-Id: Ic26216bb03d941c1625a61c1c3340d2d70d84bd0 Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/vppapigen/node.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/vppapigen/node.c b/src/tools/vppapigen/node.c
index 54fef8f1e59..359ac9c918d 100644
--- a/src/tools/vppapigen/node.c
+++ b/src/tools/vppapigen/node.c
@@ -754,7 +754,7 @@ void node_complex_generate (node_t *this, enum passid which, FILE *fp)
union_prefix, member_name);
indent_me(fp);
- if (deeper->type == NODE_VECTOR)
+ if (deeper && deeper->type == NODE_VECTOR)
fprintf(fp, "%s_print(a->%s%s, handle);\n",
CDATA0, union_prefix, member_name);
else
@@ -778,7 +778,7 @@ void node_complex_generate (node_t *this, enum passid which, FILE *fp)
}
indent_me(fp);
- if (deeper->type == NODE_VECTOR)
+ if (deeper && deeper->type == NODE_VECTOR)
fprintf(fp, "%s_endian(a->%s%s);\n",
CDATA0, union_prefix, member_name);
else