mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-06-17 14:22:00 +00:00
Initialize mapping memory
This commit is contained in:
@@ -39,6 +39,7 @@ struct mapping* mapping_parse(char* mapping) {
|
|||||||
|
|
||||||
strncpy(map->guid, guid, sizeof(map->guid));
|
strncpy(map->guid, guid, sizeof(map->guid));
|
||||||
strncpy(map->name, name, sizeof(map->name));
|
strncpy(map->name, name, sizeof(map->name));
|
||||||
|
memset(&map->abs_leftx, -1, sizeof(short) * 31);
|
||||||
|
|
||||||
char* option;
|
char* option;
|
||||||
while ((option = strtok_r(NULL, ",", &strpoint)) != NULL) {
|
while ((option = strtok_r(NULL, ",", &strpoint)) != NULL) {
|
||||||
|
|||||||
+1
-1
@@ -258,7 +258,7 @@ int main(int argc, char* argv[]) {
|
|||||||
exit(-1);
|
exit(-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
struct mapping* mappings;
|
struct mapping* mappings = NULL;
|
||||||
if (config.mapping != NULL)
|
if (config.mapping != NULL)
|
||||||
mappings = mapping_load(config.mapping, config.debug_level > 0);
|
mappings = mapping_load(config.mapping, config.debug_level > 0);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user