From 4f4b1f7658acb1820d0c446a00801d99ffa4a941 Mon Sep 17 00:00:00 2001 From: Stephan Hadinger Date: Sat, 6 Nov 2021 19:23:50 +0100 Subject: [PATCH] Berry fix crash in solidify --- lib/libesp32/Berry/src/be_solidifylib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libesp32/Berry/src/be_solidifylib.c b/lib/libesp32/Berry/src/be_solidifylib.c index c16c0976a..370633aec 100644 --- a/lib/libesp32/Berry/src/be_solidifylib.c +++ b/lib/libesp32/Berry/src/be_solidifylib.c @@ -245,7 +245,7 @@ static void m_solidify_proto(bvm *vm, bproto *pr, const char * func_name, int bu logfmt("%*s(be_nested_const_str(\"%s\", %i, %i)),\n", indent, "", str(pr->name), be_strhash(pr->name), str_len(pr->name)); // logfmt("%*s(be_nested_const_str(\"%s\", %i, %i)),\n", indent, "", func_source, be_strhash(pr->source), str_len(pr->source)); // hard-code source as "input" for solidified - logfmt("%*s((bstring*) &be_const_str_input),\n"); + logfmt("%*s((bstring*) &be_const_str_input),\n", indent, ""); logfmt("%*s( &(const binstruction[%2d]) { /* code */\n", indent, "", pr->codesize); for (int pc = 0; pc < pr->codesize; pc++) {