diff options
author | Dave Davenport <qball@gmpclient.org> | 2016-11-26 17:29:42 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2016-11-26 17:29:42 +0100 |
commit | 84baa94bfcf7b349970ffed74659b3b8cf8da7f0 (patch) | |
tree | 6dd947eb03f0e20897081dfbc6d217f8895c53be /source/xrmoptions.c | |
parent | 84f7ec2f0e2ee322c82ce2ee963a418a56c2b268 (diff) |
Remove trailing whitespace from string options.
Diffstat (limited to 'source/xrmoptions.c')
-rw-r--r-- | source/xrmoptions.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/xrmoptions.c b/source/xrmoptions.c index 806782f9..85a80436 100644 --- a/source/xrmoptions.c +++ b/source/xrmoptions.c @@ -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 ); |