We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e4818a4 commit c215c87Copy full SHA for c215c87
src/SDL_net.c
@@ -616,6 +616,9 @@ static void trim_whitespace(char *str)
616
617
NET_Address *NET_ResolveHostname(const char *host)
618
{
619
+ // If this isn't true, we'll spin up resolver threads without locking that will be orphaned in NET_Init()
620
+ SDL_assert(SDL_GetAtomicInt(&initialize_count) > 0);
621
+
622
NET_Address *addr = SDL_calloc(1, sizeof (NET_Address));
623
if (!addr) {
624
return NULL;
0 commit comments