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

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