--- xodtemplate.c.bak 2007-03-06 16:24:51.000000000 +0100 +++ xodtemplate.c 2007-03-13 13:57:02.000000000 +0100 @@ -2826,7 +2826,7 @@ /* add the custom variable */ if(xodtemplate_add_custom_variable_to_contact(temp_contact,customvarname,customvarvalue)==NULL){ #ifdef DEBUG1 - printf("Error: Could not add custom variable '%s' for contact.\n",varname); + printf("Error: Could not add custom variable '%s' for contact.\n",customvarname); #endif my_free((void **)&customvarname); my_free((void **)&customvarvalue); @@ -3262,7 +3262,7 @@ /* add the custom variable */ if(xodtemplate_add_custom_variable_to_host(temp_host,customvarname,customvarvalue)==NULL){ #ifdef DEBUG1 - printf("Error: Could not add custom variable '%s' for host.\n",varname); + printf("Error: Could not add custom variable '%s' for host.\n",customvarname); #endif my_free((void **)&customvarname); my_free((void **)&customvarvalue); @@ -3657,7 +3657,7 @@ /* add the custom variable */ if(xodtemplate_add_custom_variable_to_service(temp_service,customvarname,customvarvalue)==NULL){ #ifdef DEBUG1 - printf("Error: Could not add custom variable '%s' for service.\n",varname); + printf("Error: Could not add custom variable '%s' for service.\n",customvarname); #endif my_free((void **)&customvarname); my_free((void **)&customvarvalue);