You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@celix.apache.org by pn...@apache.org on 2018/09/04 08:56:26 UTC

celix git commit: CELIX-453: Fixes a clang error

Repository: celix
Updated Branches:
  refs/heads/develop 25fcbcd9f -> 6e25c0da0


CELIX-453: Fixes a clang error


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

Branch: refs/heads/develop
Commit: 6e25c0da088196cc01919551f683c22eb8cefed9
Parents: 25fcbcd
Author: Pepijn Noltes <pe...@gmail.com>
Authored: Tue Sep 4 10:55:58 2018 +0200
Committer: Pepijn Noltes <pe...@gmail.com>
Committed: Tue Sep 4 10:55:58 2018 +0200

----------------------------------------------------------------------
 libs/etcdlib/src/etcd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/celix/blob/6e25c0da/libs/etcdlib/src/etcd.c
----------------------------------------------------------------------
diff --git a/libs/etcdlib/src/etcd.c b/libs/etcdlib/src/etcd.c
index 1dafd94..5aa9b02 100644
--- a/libs/etcdlib/src/etcd.c
+++ b/libs/etcdlib/src/etcd.c
@@ -100,7 +100,7 @@ int etcd_get(const char* key, char** value, int* modifiedIndex) {
 	reply.header = NULL; /* will be grown as needed by the realloc above */
 	reply.headerSize = 0; /* no data at this point */
 
-	int retVal;
+	int retVal = ETCDLIB_RC_ERROR;
 	char *url;
 	asprintf(&url, "http://%s:%d/v2/keys/%s", etcd_server, etcd_port, key);
 	res = performRequest(url, GET, NULL, (void *) &reply);