From 0179e419dc59683a4edd22442762949eec611ec9 Mon Sep 17 00:00:00 2001 From: "Joseph C. Lehner" Date: Sat, 19 Mar 2016 15:37:07 +0100 Subject: [PATCH] Fix uninitialized warning --- nmrp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nmrp.c b/nmrp.c index a374c6c..c696fcc 100644 --- a/nmrp.c +++ b/nmrp.c @@ -393,6 +393,8 @@ int nmrp_do(struct nmrpd_args *args) return 1; } + sigh_orig = signal(SIGINT, sigh); + status = is_valid_ip(sock, &ipaddr, &ipmask); if (status <= 0) { if (!status) { @@ -403,7 +405,6 @@ int nmrp_do(struct nmrpd_args *args) } gsock = sock; - sigh_orig = signal(SIGINT, sigh); if (ethsock_set_timeout(sock, args->rx_timeout)) { goto out; -- 2.25.1