]> granicus.if.org Git - graphviz/commitdiff
applying RH's graphviz-2.42.2-coverity-scan-fixes.patch
authorJohn Ellson <ellson@research.att.com>
Thu, 9 Apr 2020 20:11:58 +0000 (16:11 -0400)
committerJohn Ellson <ellson@research.att.com>
Thu, 9 Apr 2020 20:11:58 +0000 (16:11 -0400)
cmd/lefty/dot2l/dotlex.c
cmd/tools/gvgen.c

index cf738c0c7e8292d1fee428ff2e92c251f69b76ba..65e17e2462cab67a1eb35f0903ae4beb17c46d62 100644 (file)
@@ -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++;
index c2b166d44917986565ebb56cbc4d1c4dbb631ed2..c9a51e9cf777ebd17cbccaadfa2db95899ff0818 100644 (file)
@@ -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;