mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-24 20:08:10 +01:00
query: bind queries to database objects
The queries don't really work after a database is closed, and we would like them to be freed if the database is destroyed. Acknowledged-by: David Bremner <david@tethera.net> Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
This commit is contained in:
parent
1eecfbd51a
commit
fd733a4f5c
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ notmuch_query_create (notmuch_database_t *notmuch,
|
||||||
if (_debug_query ())
|
if (_debug_query ())
|
||||||
fprintf (stderr, "Query string is:\n%s\n", query_string);
|
fprintf (stderr, "Query string is:\n%s\n", query_string);
|
||||||
|
|
||||||
query = talloc (NULL, notmuch_query_t);
|
query = talloc (notmuch, notmuch_query_t);
|
||||||
if (unlikely (query == NULL))
|
if (unlikely (query == NULL))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue