- fixed a bug in SaveSICSOBJ (not storing the value of the topmost node)

This commit is contained in:
zolliker
2012-08-21 06:41:17 +00:00
parent fda64c46b5
commit f1c42c8805

View File

@ -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,10 +282,10 @@ 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;
}
}
parArray[i] = currentPar;
count++;
}