Remove trailing whitespace from string options.

This commit is contained in:
Dave Davenport 2016-11-26 17:29:42 +01:00
parent 84f7ec2f0e
commit 84baa94bfc

View file

@ -227,7 +227,7 @@ static void config_parser_set ( XrmOption *option, char *xrmValue, enum ConfigSo
g_free ( option->mem );
option->mem = NULL;
}
*( option->value.str ) = g_strdup ( xrmValue );
*( option->value.str ) = g_strchomp ( g_strdup ( xrmValue ) );
// Memory
( option )->mem = *( option->value.str );