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-230: fixed loop index
Date Tue, 03 Nov 2015 17:27:24 GMT
Repository: celix
Updated Branches:
  refs/heads/develop 63c776221 -> 230d3cf7d


CELIX-230: fixed loop index


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

Branch: refs/heads/develop
Commit: 230d3cf7dae28eab78991b56a647f09387e8b8c4
Parents: 63c7762
Author: Bjoern Petri <bpetri@apache.org>
Authored: Tue Nov 3 18:26:43 2015 +0100
Committer: Bjoern Petri <bpetri@apache.org>
Committed: Tue Nov 3 18:26:43 2015 +0100

----------------------------------------------------------------------
 shell/private/src/lb_command.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/celix/blob/230d3cf7/shell/private/src/lb_command.c
----------------------------------------------------------------------
diff --git a/shell/private/src/lb_command.c b/shell/private/src/lb_command.c
index fca93de..fb35644 100644
--- a/shell/private/src/lb_command.c
+++ b/shell/private/src/lb_command.c
@@ -75,6 +75,9 @@ celix_status_t psCommand_execute(void *_ptr, char *command_line_str, FILE
*out_p
         fprintf(out_ptr, "  %-5s %-12s %s\n", "ID", "State", message_str);
 
         unsigned int size = arrayList_size(bundles_ptr);
+
+        printf("size is %d\n", size);
+
         bundle_pt bundles_array_ptr[size];
 
         for (unsigned int i = 0; i < size; i++) {
@@ -106,7 +109,7 @@ celix_status_t psCommand_execute(void *_ptr, char *command_line_str, FILE
*out_p
             }
         }
 
-        for (unsigned int i = 0; i < size - 1; i++) {
+        for (unsigned int i = 0; i < size; i++) {
             celix_status_t sub_status;
 
             bundle_pt bundle_ptr = bundles_array_ptr[i];


Mime
View raw message