summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--toxcore/network.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/network.c b/toxcore/network.c
index 244512c0..9ce64aef 100644
--- a/toxcore/network.c
+++ b/toxcore/network.c
@@ -452,7 +452,7 @@ int networking_at_startup(void)
452 randombytes_stir(); 452 randombytes_stir();
453#else 453#else
454 454
455 if (sodium_init() != 0) 455 if (sodium_init() == -1)
456 return -1; 456 return -1;
457 457
458#endif /*USE_RANDOMBYTES_STIR*/ 458#endif /*USE_RANDOMBYTES_STIR*/