dovecot-2.2: Make static analyzer happier

dovecot at dovecot.org dovecot at dovecot.org
Sun Nov 3 21:48:37 EET 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/fb3c54258b5b
changeset: 16928:fb3c54258b5b
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Nov 03 21:48:24 2013 +0200
description:
Make static analyzer happier

diffstat:

 src/lib-http/test-http-response-parser.c |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r 27c7f25b1f27 -r fb3c54258b5b src/lib-http/test-http-response-parser.c
--- a/src/lib-http/test-http-response-parser.c	Sun Nov 03 21:47:46 2013 +0200
+++ b/src/lib-http/test-http-response-parser.c	Sun Nov 03 21:48:24 2013 +0200
@@ -104,6 +104,7 @@
 		unsigned int pos, response_text_len;
 		int ret = 0;
 
+		memset(&response, 0, sizeof(response));
 		test = &valid_response_parse_tests[i];
 		response_text = test->response;
 		response_text_len = strlen(response_text);


More information about the dovecot-cvs mailing list