aboutsummaryrefslogtreecommitdiff
path: root/src/common/pubsub.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/pubsub.c')
-rw-r--r--src/common/pubsub.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/pubsub.c b/src/common/pubsub.c
index 98ec3f81cc..b3faf40e00 100644
--- a/src/common/pubsub.c
+++ b/src/common/pubsub.c
@@ -48,7 +48,7 @@ pubsub_subscribe_(pubsub_topic_t *topic,
if (subscribe_flags & SUBSCRIBE_ATSTART) {
tor_assert(topic->n_events_fired == 0);
}
- pubsub_subscriber_t *r = tor_malloc_zero(sizeof(r));
+ pubsub_subscriber_t *r = tor_malloc_zero(sizeof(*r));
r->priority = priority;
r->subscriber_flags = subscribe_flags;
r->fn = fn;