tCall sodium_init in beopen() - dedup - deduplicating backup program
 (HTM) git clone git://git.z3bra.org/dedup.git
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 4254c18ccefe1aec0ed1bae902202e0ca5f8ad10
 (DIR) parent 0bf61ad5efda6cffccf715d49f109d136c74931e
 (HTM) Author: sin <sin@2f30.org>
       Date:   Sun, 19 May 2019 21:30:52 +0300
       
       Call sodium_init in beopen()
       
       Diffstat:
         M bencrypt.c                          |       5 +++++
       
       1 file changed, 5 insertions(+), 0 deletions(-)
       ---
 (DIR) diff --git a/bencrypt.c b/bencrypt.c
       t@@ -157,6 +157,11 @@ beopen(struct bctx *bctx, char *path, int flags, int mode)
                        return -1;
                }
        
       +        if (sodium_init() < 0) {
       +                seterr("sodium_init: failed");
       +                return -1;
       +        }
       +
                bctx->ectx = calloc(1, sizeof(struct ectx));
                if (bctx->ectx == NULL) {
                        seterr("calloc: %s", strerror(errno));