From 727d2d30a3862bba3cbe5ab5e2b81fd552cd1d93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Al=D0=B5x=D0=B0nder=20Lysik=D0=BEv?= <alexander.lysikov@demlabs.net> Date: Thu, 2 Apr 2020 21:59:39 +0500 Subject: [PATCH] fixed order->ext output --- dap_chain_net_srv_order.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/dap_chain_net_srv_order.c b/dap_chain_net_srv_order.c index 30964af..b69f256 100644 --- a/dap_chain_net_srv_order.c +++ b/dap_chain_net_srv_order.c @@ -32,7 +32,7 @@ char *s_server_continents[]={ "None", "Africa", - "Europa", + "Europe", "North America", "South America", "Southeast Asia", @@ -413,7 +413,11 @@ void dap_chain_net_srv_order_dump_to_string(dap_chain_net_srv_order_t *a_order,d dap_string_append_printf(a_str_out, " tx_cond_hash: %s\n", l_hash_str ); char *l_ext_out = a_order->ext_size ? DAP_NEW_Z_SIZE(char, a_order->ext_size * 2 + 1) : NULL; dap_bin2hex(l_ext_out, a_order->ext, a_order->ext_size); - dap_string_append_printf(a_str_out, " ext: 0x%s\n", l_ext_out ? l_ext_out : ""); + if(l_ext_out) + dap_string_append_printf(a_str_out, " ext: 0x%s\n", l_ext_out); + else + dap_string_append_printf(a_str_out, " ext: 0x0\n"); + DAP_DELETE(l_ext_out); } } -- GitLab