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

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