]> granicus.if.org Git - graphviz/commitdiff
expr expush: remove unnecessary cast
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 9 Jul 2022 16:32:25 +0000 (09:32 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 16 Jul 2022 01:53:14 +0000 (18:53 -0700)
lib/expr/exgram.h

index 33e1eb62871982b0bf12eadc15ed9dddb661fba3..d3ddbc91465260237358a7f3146a1c646590f0b8 100644 (file)
@@ -843,7 +843,7 @@ expush(Expr_t* p, const char* name, int line, const char* sp, Sfio_t* fp)
                        }
                        else
                        {
-                               name = (const char*)vmstrdup(p->vm, s);
+                               name = vmstrdup(p->vm, s);
                                in->close = 1;
                        }
                }