Skip to content

Commit

Permalink
Merge pull request contiki-os#2691 from pjonsson/process-single-init
Browse files Browse the repository at this point in the history
process: avoid zero-init global vars
  • Loading branch information
nfi committed Oct 6, 2023
2 parents d1a6a2f + 311d5bf commit 8e6d82c
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions os/sys/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@
/*
* Pointer to the currently running process structure.
*/
struct process *process_list = NULL;
struct process *process_current = NULL;
struct process *process_list;
struct process *process_current;

static process_event_t lastevent;

Expand Down Expand Up @@ -210,13 +210,6 @@ void
process_init(void)
{
lastevent = PROCESS_EVENT_MAX;

nevents = fevent = 0;
#if PROCESS_CONF_STATS
process_maxevents = 0;
#endif /* PROCESS_CONF_STATS */

process_current = process_list = NULL;
}
/*---------------------------------------------------------------------------*/
/*
Expand Down

0 comments on commit 8e6d82c

Please sign in to comment.