summaryrefslogtreecommitdiffstats
path: root/source/helper.c
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2016-08-29 21:14:03 +0200
committerDave Davenport <qball@gmpclient.org>2016-08-29 21:14:03 +0200
commit5cfe9a89b326e582fdda81c03cc6efba8e1379cb (patch)
treee367ede122f5079467cb2075b068a654ed9b0daa /source/helper.c
parent1f641135e23e32de3165224c77a7ba7206ea2b99 (diff)
Improve DRun handling a bit.
- Remove entries that are deprecated or unsupported. - Handle field codes %c and %k TODO: - Detect multiple identical field code entries and throw error.
Diffstat (limited to 'source/helper.c')
-rw-r--r--source/helper.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/helper.c b/source/helper.c
index ef402ed5..9e420c91 100644
--- a/source/helper.c
+++ b/source/helper.c
@@ -194,7 +194,7 @@ static GRegex * create_regex ( const char *input, int case_sensitive )
{
#define R( s ) g_regex_new ( s, G_REGEX_OPTIMIZE | ( ( case_sensitive ) ? 0 : G_REGEX_CASELESS ), 0, NULL )
GRegex * retv = NULL;
- gchar *r;
+ gchar *r;
switch ( config.matching_method )
{
case MM_GLOB:
@@ -234,7 +234,7 @@ GRegex **tokenize ( const char *input, int case_sensitive )
}
char *saveptr = NULL, *token;
- GRegex **retv = NULL;
+ GRegex **retv = NULL;
if ( !config.tokenize ) {
retv = g_malloc0 ( sizeof ( GRegex* ) * 2 );
retv[0] = (GRegex *) create_regex ( input, case_sensitive );