From: Katerina Kubecova Date: Fri, 1 Dec 2023 14:00:26 +0000 (+0100) Subject: fixup! cbor_cmds.c, ospf_for_cbor.c: ospf show topology looks working X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff7f5df4c5ce39fd097ddd818c1828f0f2e415b3;p=thirdparty%2Fbird.git fixup! cbor_cmds.c, ospf_for_cbor.c: ospf show topology looks working --- diff --git a/nest/cbor.c b/nest/cbor.c index 924a6fa3b..1dba7fc9c 100644 --- a/nest/cbor.c +++ b/nest/cbor.c @@ -83,7 +83,6 @@ void cbor_add_string(struct cbor_writer *writer, const char *string) void cbor_nonterminated_string(struct cbor_writer *writer, const char *string, uint length) { - int length = strlen(string); write_item(writer, 3, length); // 3 is major, then goes length of string and string check_memory(writer, length); memcpy(writer->cbor+writer->pt, string, length);