parser-endpoint: fix typo; initialize endpoint priority instead of reseting the match one

This commit is contained in:
George Kiagiadakis 2019-12-18 16:04:57 +02:00
parent e10b0f871d
commit 152611dd3f

View file

@ -154,7 +154,7 @@ wp_parser_endpoint_data_new (const gchar *location)
res->e.direction = parse_endpoint_direction (direction);
/* Get the priority from the endpoint table */
res->mn.priority = 0;
res->e.priority = 0;
wp_toml_table_get_uint32 (e, "priority", &res->e.priority);
/* Get the endpoint properties */