bug fixed for set->vars and set->offset
parent
6ba4379b1e
commit
0005b1dc08
|
|
@ -279,7 +279,7 @@ static int iniAnnotationReplaceVars(IniContext *pContext, char *param,
|
||||||
}
|
}
|
||||||
|
|
||||||
set = iniGetVars(pContext);
|
set = iniGetVars(pContext);
|
||||||
if (set == NULL) {
|
if (set == NULL || set->vars == NULL) {
|
||||||
logWarning("file: "__FILE__", line: %d, "
|
logWarning("file: "__FILE__", line: %d, "
|
||||||
"NO set directives before, set value to %s",
|
"NO set directives before, set value to %s",
|
||||||
__LINE__, param);
|
__LINE__, param);
|
||||||
|
|
@ -2453,6 +2453,7 @@ void iniFreeContext(IniContext *pContext)
|
||||||
hash_destroy(set->vars);
|
hash_destroy(set->vars);
|
||||||
free(set->vars);
|
free(set->vars);
|
||||||
set->vars = NULL;
|
set->vars = NULL;
|
||||||
|
set->offset = 0;
|
||||||
}
|
}
|
||||||
iniFreeDynamicContent(pContext);
|
iniFreeDynamicContent(pContext);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue