summaryrefslogtreecommitdiffstats
path: root/source/xrmoptions.c
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2016-11-26 17:29:42 +0100
committerDave Davenport <qball@gmpclient.org>2016-11-26 17:29:42 +0100
commit84baa94bfcf7b349970ffed74659b3b8cf8da7f0 (patch)
tree6dd947eb03f0e20897081dfbc6d217f8895c53be /source/xrmoptions.c
parent84f7ec2f0e2ee322c82ce2ee963a418a56c2b268 (diff)
Remove trailing whitespace from string options.
Diffstat (limited to 'source/xrmoptions.c')
-rw-r--r--source/xrmoptions.c2
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 );