From f80e7d52bcd10d1220be571e103e119bae4ad437 Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Wed, 17 Oct 2018 22:41:20 +0200 Subject: [Helper] Remove fixed key/values and accept keys with NULL as values. --- source/helper.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'source/helper.c') diff --git a/source/helper.c b/source/helper.c index 6722cf50..788eb489 100644 --- a/source/helper.c +++ b/source/helper.c @@ -1287,9 +1287,6 @@ char *helper_string_replace_if_exists ( char * string, ... ) GError *error = NULL; GHashTable *h; h = g_hash_table_new ( g_str_hash, g_str_equal ); - // By default, we insert terminal and ssh-client - g_hash_table_insert ( h, "{terminal}", config.terminal_emulator ); - g_hash_table_insert ( h, "{ssh-client}", config.ssh_client ); // Add list from variable arguments. va_list ap; va_start ( ap, string ); @@ -1299,9 +1296,6 @@ char *helper_string_replace_if_exists ( char * string, ... ) break; } char *value = va_arg ( ap, char * ); - if ( value == (char *) 0 ) { - break; - } g_hash_table_insert ( h, key, value ); } va_end ( ap ); -- cgit v1.2.3