]> git.notmuchmail.org Git - notmuch/blobdiff - lib/database.cc
lib: Expose query debug output via an environment variable
[notmuch] / lib / database.cc
index 8f8df1a1434ed604ca2fe1a7bdf5f87b7084a28d..16c4354f2448bbc39bff3a1c3f630b4775575cd4 100644 (file)
@@ -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 {