diff options
| author | Mattias Andrée <m@maandree.se> | 2026-06-04 18:13:03 +0200 |
|---|---|---|
| committer | Mattias Andrée <m@maandree.se> | 2026-06-04 18:13:03 +0200 |
| commit | 6e15f057ebc59a0d5bdb94675548d1dde5030d60 (patch) | |
| tree | c4305d3245448062d89480aafe69b2c75d0f07d9 /libautomata_destroy_automaton.c | |
| parent | Some fixes and generic automaton (diff) | |
| download | libautomata-6e15f057ebc59a0d5bdb94675548d1dde5030d60.tar.gz libautomata-6e15f057ebc59a0d5bdb94675548d1dde5030d60.tar.bz2 libautomata-6e15f057ebc59a0d5bdb94675548d1dde5030d60.tar.xz | |
Some fixes
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'libautomata_destroy_automaton.c')
| -rw-r--r-- | libautomata_destroy_automaton.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libautomata_destroy_automaton.c b/libautomata_destroy_automaton.c index ef27bc1..70532ee 100644 --- a/libautomata_destroy_automaton.c +++ b/libautomata_destroy_automaton.c @@ -8,7 +8,7 @@ libautomata_destroy_automaton(struct libautomata_automaton *automaton) size_t i; if (automaton->nodes) for (i = 0; i < automaton->nnodes; i++) - if (automaton->nodes[i] && automaton->nodes[i].destory) + if (automaton->nodes[i].destory) (*automaton->nodes[i].destory)(&automaton->nodes[i]); automaton->start = NULL; automaton->current = NULL; |
