From 3a4ab2529d5326a605a21c171fa95462d45ce8a3 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Fri, 23 Apr 2021 21:14:54 -0700 Subject: [PATCH] remove useless snprintf Unclear what the purpose of this was when the content of buf is overwritten later before being read. --- lib/sparse/DotIO.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/sparse/DotIO.c b/lib/sparse/DotIO.c index 2c1995f4b..2d6dc86e1 100644 --- a/lib/sparse/DotIO.c +++ b/lib/sparse/DotIO.c @@ -437,7 +437,6 @@ makeDotGraph (SparseMatrix A, char *name, int dim, real *x, int with_color, int } else { g = agopen ("G", Agdirected, 0); } - snprintf(buf, sizeof(buf), "%f", 1.0); label_string = strcpy(label_string, name); label_string = strcat(label_string, ". "); -- 2.40.0