diff options
Diffstat (limited to 'nest')
-rw-r--r-- | nest/a-set.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/nest/a-set.c b/nest/a-set.c index 78922ffd..1186eb56 100644 --- a/nest/a-set.c +++ b/nest/a-set.c @@ -69,14 +69,15 @@ int ec_format(byte *buf, u64 ec) { u32 type, key, val; - char tbuf[16], *kind; + char tbuf[16]; + const char *kind; type = ec >> 48; kind = ec_subtype_str(type & 0xf0ff); if (!kind) { + bsprintf(tbuf, "unknown 0x%x", type); kind = tbuf; - bsprintf(kind, "unknown 0x%x", type); } switch (ec >> 56) |