summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-06-28 09:11:46 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-06-28 09:11:46 +0100
commitbe31124ca61c5a503a41762089d4e1cbc9f51ebf (patch)
tree6951ccaa2f265585a441804bc76e2cc3f83466df /src
parentdedb3055cd220c2fb3715f51601f236866d84d81 (diff)
drop res and check return of wg_split directly
Diffstat (limited to 'src')
-rw-r--r--src/textcat.c4
1 files changed, 2 insertions, 2 deletions
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;
}