Commit fd7e1f98 authored by Ulrich Sibiller's avatar Ulrich Sibiller Committed by Mike Gabriel

Keyboard.c: rearrange code to make cppcheck happy

Otherwise it will (falsely) report "Memory pointed to by 'sessionpath' is freed twice."
parent 3c046997
......@@ -1696,8 +1696,11 @@ static char* getKeyboardFilePath(void)
free(sessionpath);
FatalError("malloc for keyboard file path failed.");
}
else
{
free(sessionpath);
}
}
else
{
fprintf(stderr, "Warning: Failed to determine keyboard file path: SessionPath not defined\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment