summaryrefslogtreecommitdiffstats
path: root/pimd/test_igmpv3_join.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-05-11 01:48:12 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-07-24 19:51:34 +0200
commit767a7788b9195c38af1927584b7b33b5b32d9696 (patch)
tree73c2012ccaa4c5869b1676a937d18a6ff3ec2ab1 /pimd/test_igmpv3_join.c
parentpimd: Save pim instance on vrf pointer (diff)
downloadfrr-767a7788b9195c38af1927584b7b33b5b32d9696.tar.xz
frr-767a7788b9195c38af1927584b7b33b5b32d9696.zip
pimd: Fix unchecked return value
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/test_igmpv3_join.c')
-rw-r--r--pimd/test_igmpv3_join.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pimd/test_igmpv3_join.c b/pimd/test_igmpv3_join.c
index 14ec9fb02..32c413bb7 100644
--- a/pimd/test_igmpv3_join.c
+++ b/pimd/test_igmpv3_join.c
@@ -138,7 +138,8 @@ int main(int argc, const char *argv[])
printf("%s: waiting...\n", prog_name);
- getchar();
+ if (getchar() == EOF)
+ printf("getchar failure\n");
close(fd);