Skip to content

Commit

Permalink
lib: Fix wrong call to get_pool_memory() in ini.c
Browse files Browse the repository at this point in the history
Seems we left a call to get_pool_memory() which clobbers the local
variable in the serialize() function.
  • Loading branch information
Marco van Wieringen committed May 14, 2016
1 parent a2fe95c commit 8dcaed2
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/lib/ini.c
Expand Up @@ -448,9 +448,6 @@ int ConfigFile::serialize(POOL_MEM *buf)
}

len = Mmsg(buf, "# Plugin configuration file\n# Version %d\n", version);

tmp = get_pool_memory(PM_MESSAGE);

for (int i = 0; items[i].name; i++) {
if (items[i].comment) {
Mmsg(tmp, "OptPrompt=%s\n", items[i].comment);
Expand Down

0 comments on commit 8dcaed2

Please sign in to comment.