Opened 11 years ago

Closed 11 years ago

#1324 closed Defect (fixed)

call to handle_trickle_init() from sched/trickle_handler.cpp fails

Reported by: Christian Beer Owned by: davea
Priority: Blocker Milestone: Undetermined
Component: Server - Other Version:
Keywords: trickle patch Cc:

Description

The parsing of command line arguments in trickle_handler.cpp is passing on the correct arguments but the wrong number of arguments to the custom handle_trickle_init(). This patch corrects this:

diff --git a/sched/trickle_handler.cpp b/sched/trickle_handler.cpp
index c365e48..b04f4f2 100644
--- a/sched/trickle_handler.cpp
+++ b/sched/trickle_handler.cpp
@@ -168,6 +168,7 @@ int main(int argc, char** argv) {
     }
 
     argv[j] = 0;
+    argc = j;
     retval = handle_trickle_init(argc, argv);
     if (retval) exit(1);

Change History (1)

comment:1 Changed 11 years ago by davea

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.