mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-09 00:54:22 +01:00
lightning-cli: don't print junk on error.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -132,6 +132,8 @@ int main(int argc, char *argv[])
|
||||
if (i < 0)
|
||||
err(ERROR_TALKING_TO_LIGHTNINGD, "reading response");
|
||||
|
||||
resp[off] = '\0';
|
||||
|
||||
/* Parsing huge results is too slow, so hack fastpath common case */
|
||||
result_end = tal_fmt(ctx, ", \"error\" : null, \"id\" : \"%s\" }\n",
|
||||
idstr);
|
||||
|
||||
Reference in New Issue
Block a user