From 89d238bb3241fe8c285e9b748c0d99fa10b6a590 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Thu, 11 Feb 2016 22:57:40 +0100 Subject: Window: fix regression that caused only a single keyfile to be taken into account. --- src/Common/Keyfiles.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/Common/Keyfiles.c b/src/Common/Keyfiles.c index c634efaf..366d65ee 100644 --- a/src/Common/Keyfiles.c +++ b/src/Common/Keyfiles.c @@ -129,7 +129,9 @@ void KeyFileCloneAll (KeyFile *firstKeyFile, KeyFile **outputKeyFile) KeyFile *cloneFirstKeyFile = KeyFileClone (firstKeyFile); KeyFile *kf; - KeyFileRemoveAll (outputKeyFile); + // free output only if different from input + if (*outputKeyFile != firstKeyFile) + KeyFileRemoveAll (outputKeyFile); if (firstKeyFile) { kf = firstKeyFile->Next; -- cgit v1.2.3