##// END OF EJS Templates
parsers: read sizes of metadata pair of obsolete marker at once...
Yuya Nishihara -
r26590:473a63c4 default
parent child Browse files
Show More
@@ -2630,12 +2630,12 static PyObject *fm1readmarker(const cha
2630 }
2630 }
2631 for (i = 0; i < nmetadata; i++) {
2631 for (i = 0; i < nmetadata; i++) {
2632 PyObject *tmp, *left = NULL, *right = NULL;
2632 PyObject *tmp, *left = NULL, *right = NULL;
2633 Py_ssize_t metasize = (unsigned char)(*data++);
2633 Py_ssize_t leftsize = (unsigned char)(*data++);
2634 left = PyString_FromStringAndSize(meta, metasize);
2634 Py_ssize_t rightsize = (unsigned char)(*data++);
2635 meta += metasize;
2635 left = PyString_FromStringAndSize(meta, leftsize);
2636 metasize = (unsigned char)(*data++);
2636 meta += leftsize;
2637 right = PyString_FromStringAndSize(meta, metasize);
2637 right = PyString_FromStringAndSize(meta, rightsize);
2638 meta += metasize;
2638 meta += rightsize;
2639 tmp = PyTuple_New(2);
2639 tmp = PyTuple_New(2);
2640 if (!left || !right || !tmp) {
2640 if (!left || !right || !tmp) {
2641 Py_XDECREF(left);
2641 Py_XDECREF(left);
General Comments 0
You need to be logged in to leave comments. Login now