summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/set.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/set.c b/src/set.c
index 0fa55fe..c812729 100644
--- a/src/set.c
+++ b/src/set.c
@@ -69,6 +69,12 @@ boolean set_validate(vtw_def *defp, char *valp, boolean empty_val)
free(path_end);
path_end=NULL;
}
+ if (defp->def_type == ERROR_TYPE) {
+ /* no type in def. setting value not allowed. */
+ fprintf(out_stream, "The specified configuration node is not valid\n");
+ bye("Can not set value: no type for %s, template %s",
+ m_path.path, t_path.path);
+ }
if (empty_val) {
if (defp->def_type != TEXT_TYPE || defp->tag || defp->multi){
printf("Empty string may be assigned only to TEXT type leaf node\n");