From 4de8623a52b096c2951e87de72c1e88af68ed03d Mon Sep 17 00:00:00 2001 From: Matthieu Gautier Date: Fri, 3 May 2019 12:08:08 +0200 Subject: [PATCH] Correctly set the zimPathToSave if there are several zim file to add. The variable `zimPathToSave` is used to store the option passed by the user. If we reuse this variable to store the real path to use for the first zim file, then we will mess the path to save of other zim files. Let's use a local variable here. Fix #288 --- src/manager/kiwix-manage.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/manager/kiwix-manage.cpp b/src/manager/kiwix-manage.cpp index 89ced54..8414227 100644 --- a/src/manager/kiwix-manage.cpp +++ b/src/manager/kiwix-manage.cpp @@ -173,8 +173,8 @@ bool handle_add(kiwix::Library* library, const std::string& libraryPath, for(auto i=optind; i