Fix uninitialized warning
This commit is contained in:
parent
8103bf5d74
commit
0179e419dc
1 changed files with 2 additions and 1 deletions
3
nmrp.c
3
nmrp.c
|
|
@ -393,6 +393,8 @@ int nmrp_do(struct nmrpd_args *args)
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sigh_orig = signal(SIGINT, sigh);
|
||||||
|
|
||||||
status = is_valid_ip(sock, &ipaddr, &ipmask);
|
status = is_valid_ip(sock, &ipaddr, &ipmask);
|
||||||
if (status <= 0) {
|
if (status <= 0) {
|
||||||
if (!status) {
|
if (!status) {
|
||||||
|
|
@ -403,7 +405,6 @@ int nmrp_do(struct nmrpd_args *args)
|
||||||
}
|
}
|
||||||
|
|
||||||
gsock = sock;
|
gsock = sock;
|
||||||
sigh_orig = signal(SIGINT, sigh);
|
|
||||||
|
|
||||||
if (ethsock_set_timeout(sock, args->rx_timeout)) {
|
if (ethsock_set_timeout(sock, args->rx_timeout)) {
|
||||||
goto out;
|
goto out;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue