diff options
author | Stef Walter <stefw@redhat.com> | 2016-01-04 21:44:17 +0100 |
---|---|---|
committer | Stef Walter <stefw@redhat.com> | 2016-01-04 21:44:17 +0100 |
commit | 10262a155ace38f52ac20be101362b250d86c1b3 (patch) | |
tree | 111ef517ce1f8a798e52df30fe99d729f37a30f6 | |
parent | 3f21258016bb587ba07181b6f6f8b2daa9c6251c (diff) |
module: Use memset() correctly in storage.c
-rw-r--r-- | module/storage.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/storage.c b/module/storage.c index 1cfd448..6c1190b 100644 --- a/module/storage.c +++ b/module/storage.c @@ -74,7 +74,7 @@ sid_storage_initialize (void *memory, size_t n_memory) return NULL; storage = memory; - memset (storage, 0, sizeof (storage)); + memset (storage, 0, sizeof (sid_storage_t)); /* Note that we assume that it's all blank */ storage->records = (sid_nonce_t*)(storage + 1); |