Module: sip-router
Branch: master
Commit: 6858a58fa404ca5004b7c1912e4e33837cfcbcc8
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=6858a58…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Mon Sep 13 12:09:19 2010 +0200
core: add #!subst rule at the end of list
- fixed loop in resolving many #!subst rules
---
ppcfg.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/ppcfg.c b/ppcfg.c
index fbd4766..8830f71 100644
--- a/ppcfg.c
+++ b/ppcfg.c
@@ -68,14 +68,13 @@ int pp_subst_add(char *data)
}
pr->indata = data;
pr->ppdata = (void*)se;
- pr->next = pp_subst_rules_tail;
if(pp_subst_rules_head==NULL)
{
pp_subst_rules_head = pr;
- pp_subst_rules_tail = pr;
} else {
pp_subst_rules_tail->next = pr;
}
+ pp_subst_rules_tail = pr;
return 0;
}