From 12da50613933d348dd5b924999af72708838190c Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Wed, 1 Mar 2023 00:13:01 +0000 Subject: [PATCH] Print something for custom messages in C++ demo --- lightning-c-bindings/demo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightning-c-bindings/demo.cpp b/lightning-c-bindings/demo.cpp index b6a4c72..7c56dd7 100644 --- a/lightning-c-bindings/demo.cpp +++ b/lightning-c-bindings/demo.cpp @@ -431,7 +431,7 @@ LDKCVec_u8Z custom_msg_bytes(const void *this_arg) { } LDKStr custom_msg_debug(const void *this_arg) { return LDKStr { - .chars = NULL, .len = 0, .chars_is_owned = false + .chars = (const unsigned char*) "Custom Message", .len = 14, .chars_is_owned = false }; } -- 2.30.2