diff options
-rw-r--r-- | src/core/line-split.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/line-split.c b/src/core/line-split.c index a93ce8e8..0ee87d23 100644 --- a/src/core/line-split.c +++ b/src/core/line-split.c @@ -43,8 +43,7 @@ static void linebuf_append(LINEBUF_REC *rec, const char *data, int len) { if (rec->len+len > rec->alloc) { rec->alloc = nearest_power(rec->len+len);; - rec->str = rec->str == NULL ? g_malloc(rec->alloc) : - g_realloc(rec->str, rec->alloc); + rec->str = g_realloc(rec->str, rec->alloc); } memcpy(rec->str + rec->len, data, len); |