Mercurial > hg-stable
changeset 35981:3028a3215a2e
patches: move assignment outside the conditional
Having this movement in its own patch will make the next patch clearer.
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Tue, 06 Feb 2018 14:24:16 +0100 |
parents | 556218e08e25 |
children | f81df691efe7 |
files | mercurial/cext/mpatch.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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; }