summaryrefslogtreecommitdiff
path: root/libstore
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-10-08 18:37:58 +0000
committerMiles Bader <miles@gnu.org>1996-10-08 18:37:58 +0000
commit3190b6381a8042ca29b383b1fa7e0aa569219069 (patch)
treeeb6e8995748f6a1744d322d76117ddaa341538bf /libstore
parentb337b768618fc88e579def419b0007cfaa7bc9fe (diff)
(store_clone):
Copy name field.
Diffstat (limited to 'libstore')
-rw-r--r--libstore/clone.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/libstore/clone.c b/libstore/clone.c
index bec2e88d..40647af2 100644
--- a/libstore/clone.c
+++ b/libstore/clone.c
@@ -37,6 +37,13 @@ store_clone (struct store *from, struct store **to)
if (! c)
return ENOMEM;
+ if (from->name)
+ {
+ c->name = strdup (from->name);
+ if (! c->name)
+ err = ENOMEM;
+ }
+
if (from->misc_len)
{
c->misc = malloc (from->misc_len);