diff options
Diffstat (limited to 'src/tools/parser.c')
-rw-r--r-- | src/tools/parser.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/tools/parser.c b/src/tools/parser.c index 30c1961f..93c765f5 100644 --- a/src/tools/parser.c +++ b/src/tools/parser.c @@ -295,7 +295,6 @@ get_start(const char* const string, int tokens) GString* result = g_string_new(""); int length = g_utf8_strlen(string, -1); gboolean in_quotes = FALSE; - char* result_str = NULL; int num_tokens = 0; // include first token @@ -325,10 +324,7 @@ get_start(const char* const string, int tokens) } } - result_str = result->str; - g_string_free(result, FALSE); - - return result_str; + return g_string_free(result, FALSE); } GHashTable* |