From be31124ca61c5a503a41762089d4e1cbc9f51ebf Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 28 Jun 2012 09:11:46 +0100 Subject: drop res and check return of wg_split directly --- src/textcat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/textcat.c b/src/textcat.c index e81a989..85775b3 100644 --- a/src/textcat.c +++ b/src/textcat.c @@ -174,14 +174,14 @@ extern void *special_textcat_Init(const char *conffile, const char *prefix) { char *p; char *segment[4]; - int res; /*** Skip comments ***/ if ((p = strchr(line, '#'))) { *p = '\0'; } - if ((res = wg_split(segment, line, line, 4)) < 2) + + if (wg_split(segment, line, line, 4) < 2) { continue; } -- cgit v1.2.3