# HG changeset patch # User reimar # Date 1390049495 0 # Node ID d0234dff2dc41c2627515de1da64f34833b6709a # Parent 21d4dd6f5996a242d2cb16efd3c258d6e7422605 vo_bl: move assignment to a place where it actuall has an effect. diff -r 21d4dd6f5996 -r d0234dff2dc4 libvo/vo_bl.c --- a/libvo/vo_bl.c Sat Jan 18 12:47:54 2014 +0000 +++ b/libvo/vo_bl.c Sat Jan 18 12:51:35 2014 +0000 @@ -172,6 +172,7 @@ struct sockaddr_in addr; struct hostent *dest; + h->fd = -1; dest = gethostbyname(h->name); if (!dest) { mp_msg(MSGT_VO, MSGL_ERR, @@ -179,7 +180,6 @@ return 1; } - h->fd = -1; memset(&addr, 0, sizeof(addr)); addr.sin_family = AF_INET; addr.sin_port = htons(h->port);