Mercurial > hg
comparison mercurial/mpatch.c @ 34633:347c0f4232e1
mpatch: re-wrap wide line with clang-format
Differential Revision: https://phab.mercurial-scm.org/D1027
author | Augie Fackler <augie@google.com> |
---|---|
date | Wed, 04 Oct 2017 10:55:51 -0400 |
parents | 155f0cc3f813 |
children | 2e08b69bcd29 |
comparison
equal
deleted
inserted
replaced
34632:7201e3607d90 | 34633:347c0f4232e1 |
---|---|
34 if (size < 1) | 34 if (size < 1) |
35 size = 1; | 35 size = 1; |
36 | 36 |
37 a = (struct mpatch_flist *)malloc(sizeof(struct mpatch_flist)); | 37 a = (struct mpatch_flist *)malloc(sizeof(struct mpatch_flist)); |
38 if (a) { | 38 if (a) { |
39 a->base = (struct mpatch_frag *)malloc(sizeof(struct mpatch_frag) * size); | 39 a->base = (struct mpatch_frag *)malloc( |
40 sizeof(struct mpatch_frag) * size); | |
40 if (a->base) { | 41 if (a->base) { |
41 a->head = a->tail = a->base; | 42 a->head = a->tail = a->base; |
42 return a; | 43 return a; |
43 } | 44 } |
44 free(a); | 45 free(a); |