Browse Source

memdump: fix overzealous assertions from b857b2e843

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ppa-0.6.1
Rusty Russell 7 years ago
parent
commit
41ef42ee94
  1. 6
      lightningd/memdump.c

6
lightningd/memdump.c

@ -73,8 +73,10 @@ static int json_add_syminfo(void *data, uintptr_t pc UNUSED,
struct json_result *response = data;
char *str;
assert(filename != NULL);
assert(function != NULL);
/* This can happen in backtraces. */
if (!filename || !function)
return 0;
str = tal_fmt(response, "%s:%u (%s)", filename, lineno, function);
json_add_string(response, NULL, str);
tal_free(str);

Loading…
Cancel
Save