diff --git a/sicsobj.c b/sicsobj.c index ba97ab00..d2d300ed 100644 --- a/sicsobj.c +++ b/sicsobj.c @@ -97,6 +97,7 @@ int SaveSICSOBJ(void *data, char *name, FILE * fd) char *cmd; if (self != NULL && self->objectNode != NULL) { + /* node = self->objectNode->child; cmd = GetHdbProp(self->objectNode, "creationCmd"); if (cmd != NULL) { @@ -109,6 +110,10 @@ int SaveSICSOBJ(void *data, char *name, FILE * fd) saveSICSNode(node, prefix, fd); node = node->next; } + */ + node = self->objectNode; + snprintf(prefix, 1024, "%s %s", name, node->name); + saveSICSNode(node, prefix, fd); fprintf(fd, "\n"); } return 1; @@ -277,9 +282,9 @@ static int invokeOBJFunction(pSICSOBJ object, pHdb commandNode, i++, currentPar = currentPar->next) { if (argv[i] != NULL) { status = assignPar(currentPar, pCon, argv[i]); - } - if (status != 1) { - return status; + if (status != 1) { + return status; + } } parArray[i] = currentPar; count++;