From b710adea5d56ff15c9cb88f7c48fbf98f029b01c Mon Sep 17 00:00:00 2001 From: cathugger Date: Fri, 24 Aug 2018 21:31:57 +0300 Subject: [PATCH] call sodium_init() --- main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.c b/main.c index 887bf0d..7a71033 100644 --- a/main.c +++ b/main.c @@ -9,6 +9,7 @@ #include #include #include +#include #include #include @@ -498,6 +499,10 @@ int main(int argc,char **argv) #endif int tret; + if (sodium_init() < 0) { + fprintf(stderr,"sodium_init() failed\n"); + return 1; + } ge_initeightpoint(); filters_init();