- fixed a bug in SaveSICSOBJ (not storing the value of the topmost node)
This commit is contained in:
11
sicsobj.c
11
sicsobj.c
@ -97,6 +97,7 @@ int SaveSICSOBJ(void *data, char *name, FILE * fd)
|
|||||||
char *cmd;
|
char *cmd;
|
||||||
|
|
||||||
if (self != NULL && self->objectNode != NULL) {
|
if (self != NULL && self->objectNode != NULL) {
|
||||||
|
/*
|
||||||
node = self->objectNode->child;
|
node = self->objectNode->child;
|
||||||
cmd = GetHdbProp(self->objectNode, "creationCmd");
|
cmd = GetHdbProp(self->objectNode, "creationCmd");
|
||||||
if (cmd != NULL) {
|
if (cmd != NULL) {
|
||||||
@ -109,6 +110,10 @@ int SaveSICSOBJ(void *data, char *name, FILE * fd)
|
|||||||
saveSICSNode(node, prefix, fd);
|
saveSICSNode(node, prefix, fd);
|
||||||
node = node->next;
|
node = node->next;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
node = self->objectNode;
|
||||||
|
snprintf(prefix, 1024, "%s %s", name, node->name);
|
||||||
|
saveSICSNode(node, prefix, fd);
|
||||||
fprintf(fd, "\n");
|
fprintf(fd, "\n");
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
@ -277,9 +282,9 @@ static int invokeOBJFunction(pSICSOBJ object, pHdb commandNode,
|
|||||||
i++, currentPar = currentPar->next) {
|
i++, currentPar = currentPar->next) {
|
||||||
if (argv[i] != NULL) {
|
if (argv[i] != NULL) {
|
||||||
status = assignPar(currentPar, pCon, argv[i]);
|
status = assignPar(currentPar, pCon, argv[i]);
|
||||||
}
|
if (status != 1) {
|
||||||
if (status != 1) {
|
return status;
|
||||||
return status;
|
}
|
||||||
}
|
}
|
||||||
parArray[i] = currentPar;
|
parArray[i] = currentPar;
|
||||||
count++;
|
count++;
|
||||||
|
Reference in New Issue
Block a user