From 3cd9ff252af99ca0784ce8e60ce07d4b4b5ce7ff Mon Sep 17 00:00:00 2001 From: Alcaro Date: Sun, 26 May 2019 14:34:27 +0200 Subject: [PATCH] turns out setting config to itself is a special case worth handling --- flips.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/flips.cpp b/flips.cpp index 88adfa3..eea515e 100644 --- a/flips.cpp +++ b/flips.cpp @@ -412,6 +412,8 @@ void config::set(LPCWSTR name, LPCWSTR value) { if (!wcscmp(name, this->names[i])) { + if (value == this->values[i]) + return; free(this->values[i]); if (value!=NULL) {