]> git.ipfire.org Git - people/ms/dma.git/commitdiff
spool.c: bzero contents of pointer
authorSimon Schubert <2@0x2c.org>
Fri, 15 Jun 2012 16:18:15 +0000 (18:18 +0200)
committerSimon Schubert <2@0x2c.org>
Fri, 15 Jun 2012 16:18:15 +0000 (18:18 +0200)
Reported-by: Sascha Wildner <saw@online.de>
spool.c

diff --git a/spool.c b/spool.c
index 873352d4be2fc7742bb27f9f60be5a406174651c..fa4265401fb6e0fa760848e658071a68697806aa 100644 (file)
--- a/spool.c
+++ b/spool.c
@@ -284,7 +284,7 @@ load_queue(struct queue *queue)
        char *queuefn;
        char *mailfn;
 
-       bzero(queue, sizeof(queue));
+       bzero(queue, sizeof(*queue));
        LIST_INIT(&queue->queue);
 
        spooldir = opendir(config.spooldir);