mirror of
https://github.com/FreeRDP/FreeRDP.git
synced 2025-06-03 00:00:20 +00:00
[locale,keyboard] fix conditionally uninitialized
This commit is contained in:
parent
ac9cf26bce
commit
564724d56a
@ -18,7 +18,7 @@
|
||||
include(CMakeParseArguments)
|
||||
include(CMakeDependentOption)
|
||||
|
||||
function(define_channel_options)
|
||||
macro(define_channel_options)
|
||||
set(PREFIX "CHANNEL")
|
||||
|
||||
cmake_parse_arguments(
|
||||
@ -53,7 +53,7 @@ function(define_channel_options)
|
||||
cmake_dependent_option(
|
||||
${CHANNEL_SERVER_OPTION} "${CHANNEL_SERVER_OPTION_DOC}" ${CHANNEL_SERVER_DEFAULT} "${CHANNEL_OPTION}" OFF
|
||||
)
|
||||
endfunction(define_channel_options)
|
||||
endmacro(define_channel_options)
|
||||
|
||||
macro(define_channel _channel_name)
|
||||
set(CHANNEL_NAME ${_channel_name})
|
||||
|
@ -1,4 +1,4 @@
|
||||
set(OPTION_DEFAULT OFF)
|
||||
set(OPTION_DEFAULT ON)
|
||||
set(OPTION_CLIENT_DEFAULT ON)
|
||||
set(OPTION_SERVER_DEFAULT ON)
|
||||
|
||||
|
@ -361,11 +361,11 @@ FREERDP_REMAP_TABLE* freerdp_keyboard_remap_string_to_list(const char* list)
|
||||
if (!list)
|
||||
return remap_table;
|
||||
|
||||
BOOL success = FALSE;
|
||||
char* copy = _strdup(list);
|
||||
if (!copy)
|
||||
goto fail;
|
||||
|
||||
BOOL success = FALSE;
|
||||
char* context = NULL;
|
||||
char* token = strtok_s(copy, ",", &context);
|
||||
while (token)
|
||||
|
Loading…
Reference in New Issue
Block a user