diff options
author | 2017-03-02 07:38:52 -0500 | |
---|---|---|
committer | 2017-03-02 20:38:41 +0000 | |
commit | a80ab84531fb1abd1e896d1adfa7e50fed80db39 (patch) | |
tree | f456cec740be3dce3dc71e9f6f698607b995f89f /src/tools/vppapigen/node.c | |
parent | 0eb22efbb54fe2e56ce8928476fffa381cb1ca8b (diff) |
VPP-608: fix coverity warning in vppapigen
Change-Id: Ic26216bb03d941c1625a61c1c3340d2d70d84bd0
Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'src/tools/vppapigen/node.c')
-rw-r--r-- | src/tools/vppapigen/node.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/vppapigen/node.c b/src/tools/vppapigen/node.c index 54fef8f1..359ac9c9 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 |