From bd8f30a2fd3d9f0e22e70f80713fdd673c9b7f15 Mon Sep 17 00:00:00 2001 From: Tim Wickberg <tim@schedmd.com> Date: Fri, 10 Jun 2016 15:30:50 +0200 Subject: [PATCH] Silence scan-build warning about uninitialized value. Value is set in call to _next_block(). Initialize to zero to silence the false warning. --- src/bcast/file_bcast.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bcast/file_bcast.c b/src/bcast/file_bcast.c index 83950a7a996..427898e745d 100644 --- a/src/bcast/file_bcast.c +++ b/src/bcast/file_bcast.c @@ -369,7 +369,7 @@ static int _bcast_file(struct bcast_parameters *params) int rc = SLURM_SUCCESS; file_bcast_msg_t bcast_msg; char *buffer = NULL; - int32_t orig_len; + int32_t orig_len = 0; uint32_t size_uncompressed = 0, size_compressed = 0; uint32_t time_compression = 0; bool more = true; -- GitLab