Browse Source

Make fallthrough explicit in tok_parse.c

In response to #325
pull/326/head
Richard Barnes 4 months ago
committed by GitHub
parent
commit
4fc3bfdfc5
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      src/mwparserfromhell/parser/ctokenizer/tok_parse.c

+ 3
- 0
src/mwparserfromhell/parser/ctokenizer/tok_parse.c View File

@@ -1558,6 +1558,9 @@ Tokenizer_handle_tag_close_close(Tokenizer *self)
Py_XDECREF(so); Py_XDECREF(so);
Py_XDECREF(sc); Py_XDECREF(sc);
} }
// One of `so` or `sc` failed to allocate so we fall through to clean up the
// closing tag and propagate the error by returning NULL.
__attribute__((fallthrough));
case -1: case -1:
Py_DECREF(closing); Py_DECREF(closing);
return NULL; return NULL;


Loading…
Cancel
Save