##// END OF EJS Templates
dirstate: fix parse_dirstate() to error out if NULL entry created...
Yuya Nishihara -
r48839:13efd8fd default
parent child Browse files
Show More
@@ -770,6 +770,8 b' static PyObject *parse_dirstate(PyObject'
770
770
771 entry = (PyObject *)dirstate_item_from_v1_data(state, mode,
771 entry = (PyObject *)dirstate_item_from_v1_data(state, mode,
772 size, mtime);
772 size, mtime);
773 if (!entry)
774 goto quit;
773 cpos = memchr(cur, 0, flen);
775 cpos = memchr(cur, 0, flen);
774 if (cpos) {
776 if (cpos) {
775 fname = PyBytes_FromStringAndSize(cur, cpos - cur);
777 fname = PyBytes_FromStringAndSize(cur, cpos - cur);
General Comments 0
You need to be logged in to leave comments. Login now