Y
Hacker News
new
|
ask
|
show
|
jobs
by
gvb
2682 days ago
Note that the problem was not missing curly braces, it was the missing line
sock->sk = NULL;
The curly braces were added as well because the single statement "if" turned into a two statement block.