author | Boris Feld <boris.feld@octobus.net> |
Tue, 06 Feb 2018 14:24:16 +0100 | |
changeset 35981 | 3028a3215a2e |
parent 35980 | 556218e08e25 |
child 35982 | f81df691efe7 |
--- a/mercurial/cext/mpatch.c Sun Feb 04 14:58:32 2018 -0800 +++ b/mercurial/cext/mpatch.c Tue Feb 06 14:24:16 2018 +0100 @@ -110,7 +110,8 @@ goto cleanup; } out = PyBytes_AsString(result); - if ((r = mpatch_apply(out, in, inlen, patch)) < 0) { + r = mpatch_apply(out, in, inlen, patch); + if (r < 0) { Py_DECREF(result); result = NULL; }