celix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bpe...@apache.org
Subject celix git commit: CELIX-304: Memory leaks in manifest parser, requirement, capability; out-of-date tests (II)
Date Tue, 24 Nov 2015 18:03:39 GMT
Repository: celix
Updated Branches:
  refs/heads/develop 53c3d9c1a -> d3c783c98


CELIX-304: Memory leaks in manifest parser, requirement, capability; out-of-date tests (II)


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

Branch: refs/heads/develop
Commit: d3c783c98a7deaf67cf0b2d5fd433101ff3f1ffa
Parents: 53c3d9c
Author: Bjoern Petri <bpetri@apache.org>
Authored: Tue Nov 24 19:01:43 2015 +0100
Committer: Bjoern Petri <bpetri@apache.org>
Committed: Tue Nov 24 19:01:43 2015 +0100

----------------------------------------------------------------------
 framework/private/src/manifest.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/celix/blob/d3c783c9/framework/private/src/manifest.c
----------------------------------------------------------------------
diff --git a/framework/private/src/manifest.c b/framework/private/src/manifest.c
index f38f60c..7c57e27 100644
--- a/framework/private/src/manifest.c
+++ b/framework/private/src/manifest.c
@@ -242,7 +242,7 @@ celix_status_t manifest_readAttributes(manifest_pt manifest, properties_pt
prope
 			strcpy(value, buf);
 		} else {
 	        int i = 0;
-			while (lbuf[++i] != ':') {
+			while (lbuf[i++] != ':') {
 				if (i >= len) {
 					printf("MANIFEST: Invalid header\n");
 					return CELIX_FILE_IO_EXCEPTION;


Mime
View raw message