Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion addons/Socket/source/LocalNameServers.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,8 @@ void LocalNameServers_findIps(LocalNameServers *self)

void LocalNameServers_findIps(LocalNameServers *self)
{
char *path = tmpnam(NULL);
char *path = NULL;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like there's a minor whitespace issue here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Funny, the whitespace doesn't show up incorrectly on my computer. Probably some issue with my vim configuration.

mkstemp(path);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mkstemp returns a file descriptor, do we need to capture it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@acook: I am unsure. I thought the old code captured it, so I preserved it. I may, however, be mistaken.

char *command = io_malloc(1024);
char *answerBuffer = io_calloc(1, 1024);
char *answer = answerBuffer;
Expand Down