summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2012-02-03 14:55:45 -0700
committerKarl Williamson <public@khwilliamson.com>2012-02-09 10:13:53 -0700
commit112b0fc601abb62ef38610a2a8edb67f8f59fade (patch)
treeef3604476bc5c86c6f6daa72e8ac820827669fde
parentf45adb7919ea18d4d76c6cffaf31c1d90a103a48 (diff)
downloadperl-112b0fc601abb62ef38610a2a8edb67f8f59fade.tar.gz
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.
-rw-r--r--regcomp.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/regcomp.c b/regcomp.c
index e474b30735..27309ff117 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);