summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2009-06-01 11:20:51 +0000
committerArthur de Jong <arthur@arthurdejong.org>2009-06-01 11:20:51 +0000
commit8604ebd3040b1c5ac86fba61881e7e85ab8a3195 (patch)
tree3278b2b91941f87ce6a3801dc1c2d8e0ae66d816
parentd297d60fab7fa74ffd2614e96ed7778f6e0dedab (diff)
merge r911 from trunk
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@912 ef36b2f9-881f-0410-afb5-c4e39611909c
-rw-r--r--nslcd/cfg.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/nslcd/cfg.c b/nslcd/cfg.c
index 6f443ae..87a9bed 100644
--- a/nslcd/cfg.c
+++ b/nslcd/cfg.c
@@ -373,12 +373,9 @@ static void get_strdup(const char *filename,int lnr,
/* TODO: refactor to have less overhead */
char token[64];
check_argumentcount(filename,lnr,keyword,get_token(line,token,sizeof(token))!=NULL);
- if ((*var==NULL)||(strcmp(*var,token)!=0))
- {
- /* Note: we have a memory leak here if a single mapping is changed
- multiple times in one config (deemed not a problem) */
- *var=xstrdup(token);
- }
+ /* Note: we have a memory leak here if a single variable is changed
+ multiple times in one config (deemed not a problem) */
+ *var=xstrdup(token);
}
static void get_restdup(const char *filename,int lnr,