mirror of
https://github.com/libretro/RetroArch
synced 2025-03-25 16:44:01 +00:00
better network initialization in net_http_new_socket
This commit is contained in:
parent
6f137587d1
commit
0750fe50bb
@ -76,7 +76,8 @@ static int net_http_new_socket(const char *domain, int port)
|
|||||||
char portstr[16] = {0};
|
char portstr[16] = {0};
|
||||||
|
|
||||||
/* Initialize the network. */
|
/* Initialize the network. */
|
||||||
network_init();
|
if (!network_init())
|
||||||
|
return -1;
|
||||||
|
|
||||||
snprintf(portstr, sizeof(portstr), "%i", port);
|
snprintf(portstr, sizeof(portstr), "%i", port);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user