- 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;
|
||||
|
||||
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++;
|
||||
|
Reference in New Issue
Block a user