/[svn]/hopm/trunk/src/libopm/src/config.c
ViewVC logotype

Diff of /hopm/trunk/src/libopm/src/config.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 5912 by michael, Tue May 5 18:33:11 2015 UTC revision 5913 by michael, Tue May 5 18:41:24 2015 UTC
# Line 83  libopm_config_create(void) Line 83  libopm_config_create(void)
83      {      {
84        case OPM_TYPE_INT:        case OPM_TYPE_INT:
85          ret->vars[i] = xcalloc(sizeof(int));          ret->vars[i] = xcalloc(sizeof(int));
         *(int *)ret->vars[i] = 0;  
86          break;          break;
87    
88        case OPM_TYPE_STRING:        case OPM_TYPE_STRING:
# Line 97  libopm_config_create(void) Line 96  libopm_config_create(void)
96        case OPM_TYPE_STRINGLIST:        case OPM_TYPE_STRINGLIST:
97          ret->vars[i] = libopm_list_create();          ret->vars[i] = libopm_list_create();
98          break;          break;
99    
100        default:        default:
101          ret->vars[i] = NULL;          ret->vars[i] = NULL;
102      }      }

Legend:
Removed from v.5912  
changed lines
  Added in v.5913

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28