diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2009-10-29 02:29:45 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2009-10-29 02:29:45 +0100 |
commit | 5ea731338d9497e26b8bde1483de7c768f17c244 (patch) | |
tree | db9c71c6eebb1f3bbb33b238714f1150b0c0194e /openbsc/src/gsm_subscriber_base.c | |
parent | ba92587cd5789d74ffa8675179f680232682edf1 (diff) |
[misc] Use talloc_zero instead of talloc and later memset
Diffstat (limited to 'openbsc/src/gsm_subscriber_base.c')
-rw-r--r-- | openbsc/src/gsm_subscriber_base.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/openbsc/src/gsm_subscriber_base.c b/openbsc/src/gsm_subscriber_base.c index 868b35599..48374eae5 100644 --- a/openbsc/src/gsm_subscriber_base.c +++ b/openbsc/src/gsm_subscriber_base.c @@ -115,11 +115,10 @@ struct gsm_subscriber *subscr_alloc(void) { struct gsm_subscriber *s; - s = talloc(tall_subscr_ctx, struct gsm_subscriber); + s = talloc_zero(tall_subscr_ctx, struct gsm_subscriber); if (!s) return NULL; - memset(s, 0, sizeof(*s)); llist_add_tail(&s->entry, &active_subscribers); s->use_count = 1; s->tmsi = GSM_RESERVED_TMSI; |