diff options
author | Dave Davenport <qball@gmpclient.org> | 2015-01-15 17:59:59 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2015-01-15 17:59:59 +0100 |
commit | a00cfbb5b01af76f72ca78d8076fb331cc91cc13 (patch) | |
tree | 096ad2559a6ed6d9940af02735c319ed43486a54 /source/helper.c | |
parent | 1a85fcbf96369c9a994c7d1eb1e27ff14fb9113b (diff) |
Small cleanup and reducing of scopes.
Diffstat (limited to 'source/helper.c')
-rw-r--r-- | source/helper.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/helper.c b/source/helper.c index 5ae6f171..cc077a83 100644 --- a/source/helper.c +++ b/source/helper.c @@ -45,12 +45,12 @@ static gboolean helper_eval_cb ( const GMatchInfo *info, GString *res, gpointer data ) { - gchar *match, *r; + gchar *match; // Get the match match = g_match_info_fetch ( info, 0 ); if ( match != NULL ) { // Lookup the match, so we can replace it. - r = g_hash_table_lookup ( (GHashTable *) data, match ); + gchar *r = g_hash_table_lookup ( (GHashTable *) data, match ); if ( r != NULL ) { // Append the replacement to the string. g_string_append ( res, r ); |