Fix message for VFL parser errors

The loop is iterating over the wrong variable, and it's reimplementing
g_strfill() in a less efficient way.
This commit is contained in:
Emmanuele Bassi 2020-03-11 15:14:17 +00:00
parent 8742d42f32
commit 7de62118a0

View File

@ -2016,14 +2016,7 @@ gtk_constraint_layout_add_constraints_from_descriptionv (GtkConstraintLayout *la
char *squiggly = NULL;
if (range > 0)
{
squiggly = g_new (char, range + 1);
for (int r = 0; r < range; i++)
squiggly[r] = '~';
squiggly[range] = '\0';
}
squiggly = g_strnfill (range, '~');
g_set_error (error, GTK_CONSTRAINT_VFL_PARSER_ERROR,
internal_error->code,