Commit 03ddca27 authored by Laurent Aimar's avatar Laurent Aimar

Fixed infinite loop in config_ChainDuplicate.

parent 971c60c8
...@@ -416,7 +416,8 @@ config_chain_t *config_ChainDuplicate( const config_chain_t *p_src ) ...@@ -416,7 +416,8 @@ config_chain_t *config_ChainDuplicate( const config_chain_t *p_src )
{ {
config_chain_t *p_dst = NULL; config_chain_t *p_dst = NULL;
config_chain_t **pp_last = &p_dst; config_chain_t **pp_last = &p_dst;
while( p_src )
for( ; p_src != NULL; p_src = p_src->p_next )
{ {
config_chain_t *p = malloc( sizeof(*p) ); config_chain_t *p = malloc( sizeof(*p) );
if( !p ) if( !p )
......
Markdown is supported
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