Skip to content

Commit

Permalink
- Educated guess at fixing xdebug#526: crashes when updating the IDE …
Browse files Browse the repository at this point in the history
…key.

SVN Rev: 3220
  • Loading branch information
derickr committed Feb 17, 2010
1 parent 9ffa3b7 commit ba7a535
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xdebug.c
Expand Up @@ -685,6 +685,7 @@ PHP_RINIT_FUNCTION(xdebug)
zval **dummy;

/* get xdebug ini entries from the environment also */
XG(ide_key) = NULL;
xdebug_env_config();
idekey = zend_ini_string("xdebug.idekey", sizeof("xdebug.idekey"), 0);

Expand All @@ -706,7 +707,7 @@ PHP_RINIT_FUNCTION(xdebug)
XG(last_eval_statement) = NULL;
XG(do_collect_errors) = 0;
XG(collected_errors) = xdebug_llist_alloc(xdebug_llist_string_dtor);

if (idekey && *idekey) {
if (XG(ide_key)) {
xdfree(XG(ide_key));
Expand Down

0 comments on commit ba7a535

Please sign in to comment.