X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=lib%2Fdatabase.cc;h=16c4354f2448bbc39bff3a1c3f630b4775575cd4;hb=596a2076dcc1ebec2dc217f6d967397ef125aac4;hp=8f8df1a1434ed604ca2fe1a7bdf5f87b7084a28d;hpb=ad6a6edb38e428f7bbcd81b49fd2ef1e5197f8c7;p=obsolete%2Fnotmuch-old diff --git a/lib/database.cc b/lib/database.cc index 8f8df1a1..16c4354f 100644 --- a/lib/database.cc +++ b/lib/database.cc @@ -1825,6 +1825,9 @@ notmuch_database_find_message_by_filename (notmuch_database_t *notmuch, if (message_ret == NULL) return NOTMUCH_STATUS_NULL_POINTER; + /* return NULL on any failure */ + *message_ret = NULL; + local = talloc_new (notmuch); try {