This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository terminology.

View the commit online.

commit 127beea28b005de98c7dfef950e584e073a55875
Author: Boris Faure <bill...@gmail.com>
AuthorDate: Thu Aug 17 12:57:29 2023 +0200

    utils: better error handling
---
 src/bin/utils.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/src/bin/utils.c b/src/bin/utils.c
index 3f94d53..34b9418 100644
--- a/src/bin/utils.c
+++ b/src/bin/utils.c
@@ -88,10 +88,17 @@ ty_eina_unicode_base64_encode(Eina_Unicode *unicode)
 
    src = "" &utf8_len);
    bb = eina_binbuf_manage_new((const unsigned char*)src, utf8_len, EINA_FALSE);
+   if (!bb)
+     {
+        free(src);
+        return NULL;
+     }
 
    sb = emile_base64_encode(bb);
-
    eina_binbuf_free(bb);
+   if (!sb)
+     return NULL;
+
    res = (char*) eina_strbuf_string_steal(sb);
    eina_strbuf_free(sb);
    return res;

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to