talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit a35fa2bcb535d69a2517314f8f3c3231ca4b4038
parent 8120aa01a5e0c8e7c7922c3a088772781f93ad5a
Author: Ricardo Mones <ricardo@mones.org>
Date:   Sun, 17 Nov 2013 18:23:52 +0100

Clean clamd plugin warning

Cleans: ‘clamd-plugin.c:494:30: warning: argument to 'sizeof' in 'memset'
call is the same pointer type 'struct response *' as the destination;
expected 'response' or an explicit length’ (gcc 4.8)

Diffstat:
Msrc/plugins/clamd/libclamd/clamd-plugin.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/plugins/clamd/libclamd/clamd-plugin.c b/src/plugins/clamd/libclamd/clamd-plugin.c @@ -490,8 +490,8 @@ Clamd_Stat clamd_verify_email(const gchar* path, response* result) { /*debug_set_mode(TRUE);*/ if (!result) { - result = malloc(sizeof(response *)); - memset(result, '\0', sizeof(response *)); + result = malloc(sizeof(response)); + memset(result, '\0', sizeof(response)); } create_socket(); if (sock < 0) {