]> granicus.if.org Git - graphviz/commitdiff
smyrna safestrdup: accept a const pointer
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 22 Jul 2022 01:44:30 +0000 (18:44 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 27 Jul 2022 14:27:01 +0000 (07:27 -0700)
This will simplify an upcoming change.

cmd/smyrna/gui/frmobjectui.c

index 468c4639beb8e1957cf7d749ced5099a90d0fcca..521e8c99c453d327298fdd44b55b23154c847163 100644 (file)
@@ -31,8 +31,7 @@ static int sel_node;
 static int sel_edge;
 static int sel_graph;
 
-static char *safestrdup(char *src)
-{
+static char *safestrdup(const char *src) {
     if (!src)
        return NULL;
     else