diff options
Diffstat (limited to 'commands/edit.c')
-rw-r--r-- | commands/edit.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/commands/edit.c b/commands/edit.c index ca40d5921b..3519b096fd 100644 --- a/commands/edit.c +++ b/commands/edit.c @@ -184,10 +184,8 @@ static struct line *line_realloc(int len, struct line *line) { int size = 32; - if (!line) { + if (!line) line = xzalloc(sizeof(struct line)); - line->data = malloc(32); - } while (size < len) size <<= 1; |