projects
/
claws.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8120aa0
)
Clean clamd plugin warning
author
Ricardo Mones
<ricardo@mones.org>
Sun, 17 Nov 2013 17:23:52 +0000
(18:23 +0100)
committer
Ricardo Mones
<ricardo@mones.org>
Sun, 17 Nov 2013 18:53:32 +0000
(19:53 +0100)
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)
src/plugins/clamd/libclamd/clamd-plugin.c
patch
|
blob
|
history
diff --git
a/src/plugins/clamd/libclamd/clamd-plugin.c
b/src/plugins/clamd/libclamd/clamd-plugin.c
index 63f8d1e076b2e8e4b9a250fd5d28dd02338bbd43..09e241c5a816e9ba454bd84ebbeffd2058ea71d2 100644
(file)
--- 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) {