You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@celix.apache.org by bp...@apache.org on 2015/11/03 18:27:24 UTC

celix git commit: CELIX-230: fixed loop index

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 <bp...@apache.org>
Authored: Tue Nov 3 18:26:43 2015 +0100
Committer: Bjoern Petri <bp...@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];