Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
d07d4a87
Commit
d07d4a87
authored
Dec 25, 2013
by
antirez
Browse files
Remove useless goto from anetTcpGenericConnect().
parent
9d199770
Changes
1
Show whitespace changes
Inline
Side-by-side
src/anet.c
View file @
d07d4a87
...
@@ -255,10 +255,8 @@ static int anetTcpGenericConnect(char *err, char *addr, int port, int flags)
...
@@ -255,10 +255,8 @@ static int anetTcpGenericConnect(char *err, char *addr, int port, int flags)
* have a connected socket. Let's return to the caller. */
* have a connected socket. Let's return to the caller. */
goto
end
;
goto
end
;
}
}
if
(
p
==
NULL
)
{
if
(
p
==
NULL
)
anetSetError
(
err
,
"creating socket: %s"
,
strerror
(
errno
));
anetSetError
(
err
,
"creating socket: %s"
,
strerror
(
errno
));
goto
error
;
}
error:
error:
if
(
s
!=
ANET_ERR
)
{
if
(
s
!=
ANET_ERR
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment