浏览代码

Make fallthrough explicit in tok_parse.c

In response to #325
pull/326/head
Richard Barnes 4 个月前
committed by GitHub
父节点
当前提交
4fc3bfdfc5
找不到此签名对应的密钥 GPG 密钥 ID: B5690EEEBB952194
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. +3
    -0
      src/mwparserfromhell/parser/ctokenizer/tok_parse.c

+ 3
- 0
src/mwparserfromhell/parser/ctokenizer/tok_parse.c 查看文件

@@ -1558,6 +1558,9 @@ Tokenizer_handle_tag_close_close(Tokenizer *self)
Py_XDECREF(so);
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:
Py_DECREF(closing);
return NULL;


正在加载...
取消
保存