Commit e87569f9 authored by Ondřej Kuzník's avatar Ondřej Kuzník Committed by Quanah Gibson-Mount
Browse files

ITS#9763 Maintain values in order of insertion

parent a5e7fdce
......@@ -249,8 +249,11 @@ refint_cf_gen(ConfigArgs *c)
ip = ch_malloc (
sizeof ( refint_attrs ) );
ip->attr = ad;
ip->next = dd->attrs;
dd->attrs = ip;
for ( pipp = &dd->attrs; *pipp; pipp = &(*pipp)->next )
/* Get to the end */ ;
ip->next = *pipp;
*pipp = ip;
} else {
snprintf( c->cr_msg, sizeof( c->cr_msg ),
"%s <%s>: %s", c->argv[0], c->argv[i], text );
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment