diff --git a/common/type_to_string.c b/common/type_to_string.c index 82affe9f0..c1642f1e1 100644 --- a/common/type_to_string.c +++ b/common/type_to_string.c @@ -33,6 +33,9 @@ const char *type_to_string_(const tal_t *ctx, const char *typename, break; } } +#if DEVELOPER + assert(s); +#endif if (!s) s = tal_fmt(ctx, "UNKNOWN TYPE %s", typename);