From 112b0fc601abb62ef38610a2a8edb67f8f59fade Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Fri, 3 Feb 2012 14:55:45 -0700 Subject: [PATCH] regcomp.c: Use NULL first parameter to _invlist_union A previous commit has changed _invlist_union() to accept a NULL first parameter. This takes advantage of that to simplify some code. --- regcomp.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/regcomp.c b/regcomp.c index e474b30..27309ff 100644 --- a/regcomp.c +++ b/regcomp.c @@ -10444,12 +10444,7 @@ parseit: swash = NULL; } else { - if (! properties) { - properties = invlist_clone(invlist); - } - else { - _invlist_union(properties, invlist, &properties); - } + _invlist_union(properties, invlist, &properties); } } Safefree(name); -- 1.8.3.1