summaryrefslogtreecommitdiff
path: root/src/mcast.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mcast.c')
-rw-r--r--src/mcast.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mcast.c b/src/mcast.c
index 77aa35c..414f031 100644
--- a/src/mcast.c
+++ b/src/mcast.c
@@ -191,7 +191,7 @@ __mcast_client_create_ipv6(struct mcast_sock *m, struct mcast_conf *conf)
struct mcast_sock *mcast_client_create(struct mcast_conf *conf)
{
- int ret = 0;
+ int ret;
struct mcast_sock *m;
m = (struct mcast_sock *) malloc(sizeof(struct mcast_sock));
@@ -221,6 +221,7 @@ struct mcast_sock *mcast_client_create(struct mcast_conf *conf)
ret = __mcast_client_create_ipv6(m, conf);
break;
default:
+ ret = 0;
break;
}