Currently _rpc_file_bcast only initializes rc on error paths, then passes it to slurm_send_rc_msg. This could cause an error to be reported when in fact there is no error. Bug identified by scan-build <https://clang-analyzer.llvm.org/scan-build.html>
Created attachment 17308 [details] Proposed patch The attached patch fixes the problem.
Comment on attachment 17308 [details] Proposed patch commit 6193b149712d688abb8714ad4c1afe90065da643 Author: Alex Henrie <alexhenrie24@gmail.com> AuthorDate: Thu Dec 31 14:30:37 2020 -0700 Fix uninitialized variable in _rpc_file_bcast(). Bug 10531.
Thanks Alex. This will be included in 20.11.3 when released. - Tim
Thank you!