dav/scfg.c

changeset 679
0d352b79363a
parent 664
d066a89d5e87
child 692
56b66fe2b4f5
equal deleted inserted replaced
678:41b4cc024249 679:0d352b79363a
450 node = node->children; 450 node = node->children;
451 while(node) { 451 while(node) {
452 if(node->type == XML_ELEMENT_NODE) { 452 if(node->type == XML_ELEMENT_NODE) {
453 char *value = util_xml_get_text(node); 453 char *value = util_xml_get_text(node);
454 /* every key needs a value */ 454 /* every key needs a value */
455 if(!value) { 455 if(!value && !xstreq(node->name, "versioning")) {
456 /* TODO: maybe this should only be reported, if the key is valid 456 // TODO: only report if value is required
457 * But this makes the code very ugly.
458 */
459 print_error(node->line, 457 print_error(node->line,
460 "missing value for directory element: %s\n", 458 "missing value for directory element: %s\n",
461 node->name); 459 node->name);
462 return 1; 460 return 1;
463 } 461 }

mercurial