Commit 912a5614 authored by Claes Sjofors's avatar Claes Sjofors

Backup load bugfix

parent 971ab74e
...@@ -289,6 +289,7 @@ bck_LoadBackup () ...@@ -289,6 +289,7 @@ bck_LoadBackup ()
if (dh.valid) { if (dh.valid) {
/* Find object */ /* Find object */
strcpy(objectname, "");
if (dh.dynamic) { if (dh.dynamic) {
strp = strchr(namep, '.'); /* always is a full object! */ strp = strchr(namep, '.'); /* always is a full object! */
...@@ -311,6 +312,8 @@ bck_LoadBackup () ...@@ -311,6 +312,8 @@ bck_LoadBackup ()
strcat(objectname, namep); strcat(objectname, namep);
sts = gdh_SetObjectInfo(objectname, datap, dh.size); sts = gdh_SetObjectInfo(objectname, datap, dh.size);
} }
else
strcpy(objectname, cdh_ObjidToString( 0, dh.objid, 1));
} }
} /* valid segment */ } /* valid segment */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment