From 3f98b29bd72cf42bd3d9d17fc9b5292937862680 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Wed, 4 Jan 2023 16:34:09 +0100 Subject: [PATCH] Don't include unused file path parameter --- vncviewer/parameters.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vncviewer/parameters.cxx b/vncviewer/parameters.cxx index 0912b461..173406d5 100644 --- a/vncviewer/parameters.cxx +++ b/vncviewer/parameters.cxx @@ -682,7 +682,7 @@ void saveViewerParameters(const char *filename, const char *servername) { static bool findAndSetViewerParameterFromValue( VoidParameter* parameters[], size_t parameters_len, - char* value, char* line, char* filepath) + char* value, char* line) { const size_t buffersize = 256; char decodingBuffer[buffersize]; @@ -821,11 +821,11 @@ char* loadViewerParameters(const char *filename) { } else { invalidParameterName = findAndSetViewerParameterFromValue(parameterArray, sizeof(parameterArray), - value, line, filepath); + value, line); if (invalidParameterName) { invalidParameterName = findAndSetViewerParameterFromValue(readOnlyParameterArray, sizeof(readOnlyParameterArray), - value, line, filepath); + value, line); } } } catch(Exception& e) { -- 2.39.5