From b4947d67a4ebd48ca0105d44f92e47f044e51600 Mon Sep 17 00:00:00 2001 From: John Ellson Date: Thu, 9 Apr 2020 16:11:58 -0400 Subject: [PATCH] applying RH's graphviz-2.42.2-coverity-scan-fixes.patch --- cmd/lefty/dot2l/dotlex.c | 2 +- cmd/tools/gvgen.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/lefty/dot2l/dotlex.c b/cmd/lefty/dot2l/dotlex.c index cf738c0c7..65e17e246 100644 --- a/cmd/lefty/dot2l/dotlex.c +++ b/cmd/lefty/dot2l/dotlex.c @@ -252,7 +252,7 @@ static char *scan_token (char *p) { char *q; q = lexbuf; - if (p == '\0') + if (!p || *p == '\0') return NULL; while (isalnum (*p) || (*p == '_') || (!isascii (*p))) *q++ = *p++; diff --git a/cmd/tools/gvgen.c b/cmd/tools/gvgen.c index c2b166d44..c9a51e9cf 100644 --- a/cmd/tools/gvgen.c +++ b/cmd/tools/gvgen.c @@ -453,6 +453,8 @@ closeOpen (void) fprintf(opts.outfile, "}\ngraph {\n"); } +extern void makeTetrix(int depth, edgefn ef); + int main(int argc, char *argv[]) { GraphType graphType; -- 2.40.0