src/server/config/conf.c

changeset 621
956c03c25edd
parent 579
e10457d74fe1
child 625
a1e8a35c677a
equal deleted inserted replaced
620:a202cb1ee175 621:956c03c25edd
257 /* 257 /*
258 * gets a value from a parameter 258 * gets a value from a parameter
259 */ 259 */
260 cxmutstr cfg_param_get(ConfigParam *param, cxstring name) { 260 cxmutstr cfg_param_get(ConfigParam *param, cxstring name) {
261 while(param != NULL) { 261 while(param != NULL) {
262 if(!cx_strcmp((cxstring){param->name.ptr, param->name.length}, name)) { 262 if(!cx_strcmp(cx_strn(param->name.ptr, param->name.length), name)) {
263 return param->value; 263 return param->value;
264 } 264 }
265 param = param->next; 265 param = param->next;
266 } 266 }
267 return (cxmutstr){ NULL, 0 }; 267 return (cxmutstr){ NULL, 0 };

mercurial