Show More
@@ -275,15 +275,20 static PyObject *parse_dirstate(PyObject | |||
|
275 | 275 | PyObject *fname = NULL, *cname = NULL, *entry = NULL; |
|
276 | 276 | char state, *cur, *str, *cpos; |
|
277 | 277 | int mode, size, mtime; |
|
278 | unsigned int flen; | |
|
279 | int len, pos = 40; | |
|
278 | unsigned int flen, len, pos = 40; | |
|
279 | int readlen; | |
|
280 | 280 | |
|
281 | 281 | if (!PyArg_ParseTuple(args, "O!O!s#:parse_dirstate", |
|
282 | 282 | &PyDict_Type, &dmap, |
|
283 | 283 | &PyDict_Type, &cmap, |
|
284 | &str, &len)) | |
|
284 | &str, &readlen)) | |
|
285 | 285 | goto quit; |
|
286 | 286 | |
|
287 | if (readlen < 0) | |
|
288 | goto quit; | |
|
289 | ||
|
290 | len = readlen; | |
|
291 | ||
|
287 | 292 | /* read parents */ |
|
288 | 293 | if (len < 40) |
|
289 | 294 | goto quit; |
General Comments 0
You need to be logged in to leave comments.
Login now