couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@apache.org
Subject [09/15] git commit: Revert "Attempting to avoid a compiler warning on Jenkins"
Date Mon, 04 Aug 2014 18:06:47 GMT
Revert "Attempting to avoid a compiler warning on Jenkins"

This reverts commit edaf27bc96c9384558df4742e77a8bf85d989eda.


Project: http://git-wip-us.apache.org/repos/asf/couchdb-b64url/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-b64url/commit/6bd8868a
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-b64url/tree/6bd8868a
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-b64url/diff/6bd8868a

Branch: refs/heads/windsor-merge
Commit: 6bd8868adad4d9d5b255fedb2a48cce9072ea3bf
Parents: edaf27b
Author: Paul J. Davis <paul.joseph.davis@gmail.com>
Authored: Thu Nov 21 15:44:55 2013 -0600
Committer: Paul J. Davis <paul.joseph.davis@gmail.com>
Committed: Thu Nov 21 15:44:55 2013 -0600

----------------------------------------------------------------------
 c_src/b64url.c | 14 +++++---------
 1 file changed, 5 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-b64url/blob/6bd8868a/c_src/b64url.c
----------------------------------------------------------------------
diff --git a/c_src/b64url.c b/c_src/b64url.c
index 3528d3b..0bc6ab8 100644
--- a/c_src/b64url.c
+++ b/c_src/b64url.c
@@ -546,32 +546,28 @@ b64url_decode_cont(ErlNifEnv* env, int argc, const ENTERM argv[])
     int status;
 
     if(argc != 2) {
-        goto badarg;
+        return enif_make_badarg(env);
     }
 
     if(!enif_inspect_iolist_as_binary(env, argv[0], &src)) {
-        goto badarg;
+        return enif_make_badarg(env);
     }
 
     if(!enif_get_resource(env, argv[1], priv->res_st, (void**) &st)) {
-        goto badarg;
+        return enif_make_badarg(env);
     }
 
     if(!check_pid(env, st)) {
-        goto badarg;
+        return enif_make_badarg(env);
     }
 
     if(src.size != st->len) {
-        goto badarg;
+        return enif_make_badarg(env);
     }
 
     status = b64url_decode(env, &src, st, &ret);
 
     return b64url_st_dec_ret(env, st, status, ret);
-
-badarg:
-    ret = enif_make_badarg(env);
-    return ret;
 }
 
 


Mime
View raw message