mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 15:36:14 +01:00
Fix global variable name hidden by local variables in glib/tests/utf8-validate.c
This commit is contained in:
parent
8f241c46b9
commit
cbc3d65f6d
@ -32,7 +32,7 @@ typedef struct {
|
||||
gboolean valid;
|
||||
} Test;
|
||||
|
||||
Test test[] = {
|
||||
static Test global_test[] = {
|
||||
/* some tests to check max_len handling */
|
||||
/* length 1 */
|
||||
{ "abcde", -1, 5, TRUE },
|
||||
@ -364,10 +364,10 @@ main (int argc, char *argv[])
|
||||
|
||||
g_test_init (&argc, &argv, NULL);
|
||||
|
||||
for (i = 0; test[i].text; i++)
|
||||
for (i = 0; global_test[i].text; i++)
|
||||
{
|
||||
path = g_strdup_printf ("/utf8/validate/%d", i);
|
||||
g_test_add_data_func (path, &test[i], do_test);
|
||||
g_test_add_data_func (path, &global_test[i], do_test);
|
||||
g_free (path);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user