Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed handler initialization
  • Loading branch information
derickr committed Feb 24, 2017
1 parent b0d3045 commit f2169d7
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions xdebug_handlers.c
Expand Up @@ -24,7 +24,7 @@

xdebug_remote_handler_info handlers[] = {
{ "dbgp", "DBGp - Common DeBuGger Protocol", xdebug_handler_dbgp },
{ 0, NULL, { NULL } }
{ 0, NULL, { NULL, NULL, NULL, NULL, NULL, NULL, NULL } }
};

xdebug_remote_handler* xdebug_handler_get(char* mode)
Expand All @@ -45,34 +45,34 @@ xdebug_remote_handler_info* xdebug_handlers_get(void)
return handlers;
}

void xdebug_brk_info_dtor(xdebug_brk_info *brk)
void xdebug_brk_info_dtor(xdebug_brk_info *brk_info)
{
if (brk->type) {
xdfree(brk->type);
if (brk_info->type) {
xdfree(brk_info->type);
}
if (brk->classname) {
xdfree(brk->classname);
if (brk_info->classname) {
xdfree(brk_info->classname);
}
if (brk->functionname) {
xdfree(brk->functionname);
if (brk_info->functionname) {
xdfree(brk_info->functionname);
}
if (brk->file) {
xdfree(brk->file);
if (brk_info->file) {
xdfree(brk_info->file);
}
if (brk->condition) {
efree(brk->condition);
if (brk_info->condition) {
efree(brk_info->condition);
}
xdfree(brk);
xdfree(brk_info);
}

void xdebug_hash_brk_dtor(xdebug_brk_info *brk)
void xdebug_hash_brk_dtor(xdebug_brk_info *brk_info)
{
xdebug_brk_info_dtor(brk);
xdebug_brk_info_dtor(brk_info);
}

void xdebug_llist_brk_dtor(void *dummy, xdebug_brk_info *brk)
void xdebug_llist_brk_dtor(void *dummy, xdebug_brk_info *brk_info)
{
xdebug_brk_info_dtor(brk);
xdebug_brk_info_dtor(brk_info);
}

void xdebug_hash_eval_info_dtor(xdebug_eval_info *ei)
Expand Down

0 comments on commit f2169d7

Please sign in to comment.