Skip to content

Commit b4d47e4

Browse files
committed
fix possible illegal conditional
1 parent 3e11705 commit b4d47e4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/zoscdump.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,11 @@ determine_socket( const char *bind)
4444
if (zrex_eq(rex, bind, "^(.+)://.*") )
4545
{
4646
const char *transport = zrex_hit(rex, 1);
47+
48+
if ( streq(transport, "ipc") )
49+
retsock = zsock_new_pull( bind );
4750
#ifdef ZMQ_DGRAM
48-
if ( streq(transport, "udp") )
51+
else if ( streq(transport, "udp") )
4952
retsock = zsock_new_dgram(bind);
5053
#endif
5154
#ifdef ZMQ_STREAM
@@ -56,9 +59,6 @@ determine_socket( const char *bind)
5659
}
5760
#endif
5861

59-
else if ( streq(transport, "ipc") )
60-
retsock = zsock_new_pull( bind );
61-
6262
else
6363
zsys_error("Not a valid transport in %s", transport);
6464

0 commit comments

Comments
 (0)