diff options
author | Dave Davenport <qball@gmpclient.org> | 2016-12-15 09:17:39 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2016-12-15 09:17:39 +0100 |
commit | d7b5b9fbfa921a4b7d8893b86d0aa1df4362ca20 (patch) | |
tree | cdb8426a115380ad913dfb08401633071992d41a /source/x11-helper.c | |
parent | 9b16f21ddced74e7713226f50843beb1bf6ef00a (diff) |
Fix some compile warnings
Diffstat (limited to 'source/x11-helper.c')
-rw-r--r-- | source/x11-helper.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source/x11-helper.c b/source/x11-helper.c index 20894a17..149becba 100644 --- a/source/x11-helper.c +++ b/source/x11-helper.c @@ -640,15 +640,13 @@ gboolean x11_parse_key ( const char *combo, unsigned int *mod, xkb_keysym_t *key char *mod_key = input_key; char *error_msg = NULL; unsigned int modmask = 0; + xkb_keysym_t sym = XKB_KEY_NoSymbol; // Test if this works on release. if ( g_str_has_prefix ( mod_key, "!" ) ) { ++mod_key; *release = TRUE; } - char *saveptr = NULL; - xkb_keysym_t sym = XKB_KEY_NoSymbol; - char **entries = g_strsplit_set ( mod_key, "+-", -1); for ( int i = 0; entries && entries[i]; i++ ) { char *entry = entries[i]; |