aboutsummaryrefslogtreecommitdiffstats
path: root/support/dfa.c
diff options
context:
space:
mode:
Diffstat (limited to 'support/dfa.c')
-rw-r--r--support/dfa.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/support/dfa.c b/support/dfa.c
index 18c17a5d..3a675f5d 100644
--- a/support/dfa.c
+++ b/support/dfa.c
@@ -4062,12 +4062,7 @@ dfamustfree (struct dfamust *dm)
struct dfa *
dfaalloc (void)
{
- void *p = xmalloc (sizeof (struct dfa));
- if (p)
- {
- memset (p, 0, sizeof (struct dfa));
- }
- return p;
+ return xzalloc (sizeof (struct dfa));
}
/* Initialize DFA. */