Skip to content

Commit

Permalink
- Initialize BG(serialize_lock) to make valgrind happy
Browse files Browse the repository at this point in the history
  • Loading branch information
felipensp committed Nov 9, 2011
1 parent d752342 commit cc8d433
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ext/standard/basic_functions.c
Original file line number Diff line number Diff line change
Expand Up @@ -3450,6 +3450,7 @@ static void basic_globals_ctor(php_basic_globals *basic_globals_p TSRMLS_DC) /*
BG(left) = -1;
BG(user_tick_functions) = NULL;
BG(user_filter_map) = NULL;
BG(serialize_lock) = 0;

memset(&BG(serialize), 0, sizeof(BG(serialize)));
memset(&BG(unserialize), 0, sizeof(BG(unserialize)));
Expand Down

0 comments on commit cc8d433

Please sign in to comment.