Blame SOURCES/graphviz-2.42.2-coverity-scan-fixes.patch

f8174a
diff --git a/cmd/lefty/dot2l/dotlex.c b/cmd/lefty/dot2l/dotlex.c
f8174a
index cf738c0..65e17e2 100644
f8174a
--- a/cmd/lefty/dot2l/dotlex.c
f8174a
+++ b/cmd/lefty/dot2l/dotlex.c
f8174a
@@ -252,7 +252,7 @@ static char *scan_token (char *p) {
f8174a
     char *q;
f8174a
 
f8174a
     q = lexbuf;
f8174a
-    if (p == '\0')
f8174a
+    if (!p || *p == '\0')
f8174a
         return NULL;
f8174a
     while (isalnum (*p) || (*p == '_') || (!isascii (*p)))
f8174a
         *q++ = *p++;
f8174a
diff --git a/cmd/tools/gvgen.c b/cmd/tools/gvgen.c
f8174a
index c2b166d..c9a51e9 100644
f8174a
--- a/cmd/tools/gvgen.c
f8174a
+++ b/cmd/tools/gvgen.c
f8174a
@@ -453,6 +453,8 @@ closeOpen (void)
f8174a
 	fprintf(opts.outfile, "}\ngraph {\n");
f8174a
 }
f8174a
 
f8174a
+extern void makeTetrix(int depth, edgefn ef);
f8174a
+
f8174a
 int main(int argc, char *argv[])
f8174a
 {
f8174a
     GraphType graphType;