Browse Source

Fix type.

tags/v0.2
Ben Kurtovic 11 years ago
parent
commit
19e7c3b6ac
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      mwparserfromhell/parser/tokenizer.c

+ 1
- 1
mwparserfromhell/parser/tokenizer.c View File

@@ -1452,7 +1452,7 @@ init_tokenizer(void)
Py_DECREF(htmlentitydefs);

unsigned numdefs = (unsigned) PyDict_Size(defmap);
entitydefs = malloc(numdefs * sizeof(char));
entitydefs = malloc(numdefs * sizeof(char*));
PyObject* deflist = PyDict_Keys(defmap);
if (!deflist) return;
Py_DECREF(defmap);


Loading…
Cancel
Save