Mercurial > hg > sidinfo
changeset 320:e315bed7d791
Minor cleanup.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 11 Jan 2020 20:18:24 +0200 |
parents | 6d0143e43edf |
children | 3bb2e0bdd1f0 |
files | sidinfo.c |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/sidinfo.c Sat Jan 11 20:12:00 2020 +0200 +++ b/sidinfo.c Sat Jan 11 20:18:24 2020 +0200 @@ -471,11 +471,10 @@ th_vprintf_ctx ctx; ctx.size = 128; - ctx.buf = th_malloc(ctx.size); - ctx.pos = 0; + ctx.pos = 0; ctx.ipos = 0; - if (ctx.buf == NULL) + if ((ctx.buf = th_malloc(ctx.size)) == NULL) return NULL; if (siItemFormatStrPrintDo(&ctx, siItemFormatStrPutCH, fmt, otype, d_str, d_int) <= 0)