[RFC,v4,01/24] sunrpc/clnt_udp: Ensure total_deadline is initalised
Commit Message
Even though total_deadline won't be accessed uninitalised GCC can still
complain that it is accessed unitalised, to avod those errors let's make
sure we initalise it to 0.
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
---
sunrpc/clnt_udp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -290,7 +290,7 @@ clntudp_call (/* client handle */
int anyup; /* any network interface up */
struct deadline_current_time current_time = __deadline_current_time ();
- struct deadline total_deadline; /* Determined once by overall timeout. */
+ struct deadline total_deadline = { 0 }; /* Determined once by overall timeout. */
struct deadline response_deadline; /* Determined anew for each query. */
/* Choose the timeout value. For non-sending usage (xargs == NULL),