mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-27 07:02:11 +00:00
MINOR: errors: use ring_dup() to duplicate the startup_logs
In startup_logs_dup() we currently need to reference the ring's buffer, better not do this as it will complicate operations when switching to other types.
This commit is contained in:
parent
7c9ce715c9
commit
a75052d665
@ -210,8 +210,7 @@ struct ring *startup_logs_dup(struct ring *src)
|
|||||||
if (!dst)
|
if (!dst)
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
b_reset(&dst->buf);
|
ring_dup(dst, src, ring_size(src));
|
||||||
b_ncat(&dst->buf, &src->buf, ring_data(src));
|
|
||||||
error:
|
error:
|
||||||
return dst;
|
return dst;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user