ossp-pkg/cfg/cfg_node.c 1.5 -> 1.6
--- cfg_node.c 2002/07/10 12:00:23 1.5
+++ cfg_node.c 2002/07/10 14:46:28 1.6
@@ -40,6 +40,8 @@
{
cfg_node_t *n;
+ if (node == NULL)
+ return CFG_ERR_ARG;
if ((n = malloc(sizeof(cfg_node_t))) == NULL)
return CFG_ERR_SYS;
n->parent = NULL;
@@ -161,10 +163,10 @@
return CFG_OK;
}
-cfg_rc_t cfg_node_goto(cfg_t *cfg, cfg_node_t **node, const char *spec)
+cfg_rc_t cfg_node_goto(cfg_t *cfg, cfg_node_t *node, const char *spec, cfg_node_t **node2)
{
- if (cfg == NULL || node == NULL || spec == NULL)
+ if (cfg == NULL || node == NULL || spec == NULL || node2 == NULL)
return CFG_ERR_ARG;
/* FIXME */
#if 0
|
|