瀏覽代碼

Correctly set TagOpenData's default values.

tags/v0.3
Ben Kurtovic 11 年之前
父節點
當前提交
30c3f27b0e
共有 1 個檔案被更改,包括 2 行新增0 行删除
  1. +2
    -0
      mwparserfromhell/parser/tokenizer.c

+ 2
- 0
mwparserfromhell/parser/tokenizer.c 查看文件

@@ -1261,6 +1261,7 @@ Tokenizer_really_parse_tag(Tokenizer* self)
PyErr_NoMemory();
return NULL;
}
data->context = TAG_NAME;
data->pad_first = Textbuffer_new();
data->pad_before_eq = Textbuffer_new();
data->pad_after_eq = Textbuffer_new();
@@ -1268,6 +1269,7 @@ Tokenizer_really_parse_tag(Tokenizer* self)
free(data);
return NULL;
}
data->reset = 0;
if (Tokenizer_push(self, LC_TAG_OPEN)) {
free(data);
return NULL;


Loading…
取消
儲存