You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ja...@apache.org on 2019/02/23 03:57:51 UTC

[couchdb-b64url] 10/31: Just assign a default value to ret

This is an automated email from the ASF dual-hosted git repository.

jaydoane pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/couchdb-b64url.git

commit 406e9f79aa91f81aaf59e29f57d03dc56bee5002
Author: Paul J. Davis <pa...@gmail.com>
AuthorDate: Thu Nov 21 15:46:18 2013 -0600

    Just assign a default value to ret
    
    Not sure how gcc was detecting that ret might've been used uninitialized
    but rather than try and poke at it throught the commit, tag, update
    dbcore, run jenkins build cycle I'll just assign a default value.
---
 c_src/b64url.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/c_src/b64url.c b/c_src/b64url.c
index 0bc6ab8..f4067fb 100644
--- a/c_src/b64url.c
+++ b/c_src/b64url.c
@@ -542,7 +542,7 @@ b64url_decode_cont(ErlNifEnv* env, int argc, const ENTERM argv[])
     ErlNifBinary src;
     b64url_priv* priv = (b64url_priv*) enif_priv_data(env);
     b64url_st* st = NULL;
-    ENTERM ret;
+    ENTERM ret = priv->atom_error;
     int status;
 
     if(argc != 2) {