diff options
author | Miles Bader <miles@gnu.org> | 1996-10-08 18:37:58 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1996-10-08 18:37:58 +0000 |
commit | 3190b6381a8042ca29b383b1fa7e0aa569219069 (patch) | |
tree | eb6e8995748f6a1744d322d76117ddaa341538bf /libstore | |
parent | b337b768618fc88e579def419b0007cfaa7bc9fe (diff) |
(store_clone):
Copy name field.
Diffstat (limited to 'libstore')
-rw-r--r-- | libstore/clone.c | 7 |
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); |