]> granicus.if.org Git - graphviz/commitdiff
cgraph: use a const char pointer for storing input filename
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 24 Jul 2021 17:52:40 +0000 (10:52 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 30 Jul 2021 03:34:15 +0000 (20:34 -0700)
Related to #634.

lib/cgraph/scan.l

index b460359e444c1e7136b2d7328580f4023e1db1c8..938d07bb2a8b5dc3ef6d90548ebec9b442a9b8dc 100644 (file)
@@ -35,7 +35,7 @@
        /* this is a workaround for linux flex */
 static int line_num = 1;
 static int html_nest = 0;  /* nesting level for html strings */
-static char* InputFile;
+static const char* InputFile;
 static Agdisc_t        *Disc;
 static void    *Ifile;
 static int graphType;