diff options
author | Carl Worth <cworth@cworth.org> | 2010-11-11 03:36:13 -0800 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2010-11-11 03:40:19 -0800 |
commit | 8480a0a00370f997a29ebf98560a799ece43d3f4 (patch) | |
tree | c4fe78d5832ee6f3f00ec6ab75bc5bc859a18ac0 /lib | |
parent | 404db1de90f6e5a66c34077b38b18a39c955ece2 (diff) |
notmuch_filenames_create: Take a reference to underlying filename list
The notmuch_filenames_t object might easily outlive the original object
owning the filename list. So take a talloc reference to keep things safe.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/filenames.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/filenames.c b/lib/filenames.c index 50e14354..f078c955 100644 --- a/lib/filenames.c +++ b/lib/filenames.c @@ -79,6 +79,7 @@ _notmuch_filenames_create (const void *ctx, return NULL; filenames->iterator = list->head; + (void) talloc_reference (filenames, list); return filenames; } |