pubsub_check.c: Stop accepting NULL prefix, which we never send.

(Our code to handle it was broken, too)
This commit is contained in:
Nick Mathewson 2019-03-13 15:54:26 -04:00
parent c40bcab85d
commit 2e7f80d5f4

View File

@ -155,8 +155,7 @@ format_flags(unsigned flags)
static void static void
pubsub_cfg_dump(const pubsub_cfg_t *cfg, int severity, const char *prefix) pubsub_cfg_dump(const pubsub_cfg_t *cfg, int severity, const char *prefix)
{ {
if (!prefix) tor_assert(prefix);
prefix = 0;
tor_log(severity, LD_MESG, tor_log(severity, LD_MESG,
"%s%s %s: %s{%s} on %s (%s) <%u %u %u %u %x> [%s:%d]", "%s%s %s: %s{%s} on %s (%s) <%u %u %u %u %x> [%s:%d]",