aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/testzzuf/test_get.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/testzzuf/test_get.c b/src/testzzuf/test_get.c
index a687555a..ef5a098b 100644
--- a/src/testzzuf/test_get.c
+++ b/src/testzzuf/test_get.c
@@ -704,7 +704,8 @@ ahc_check (void *cls,
704 /* Check that all 'upload_data' is addressable */ 704 /* Check that all 'upload_data' is addressable */
705 size_t pos; 705 size_t pos;
706 for (pos = 0; pos < *upload_data_size; ++pos) 706 for (pos = 0; pos < *upload_data_size; ++pos)
707 data_sum += (unsigned char) upload_data[pos]; 707 data_sum =
708 (unsigned char) (data_sum + (unsigned char) upload_data[pos]);
708 if (0 != *upload_data_size) 709 if (0 != *upload_data_size)
709 { 710 {
710 if (3 >= *upload_data_size) 711 if (3 >= *upload_data_size)