]> git.notmuchmail.org Git - notmuch/blobdiff - lib/database.cc
lib: Don't delete uninitialized pointers
[notmuch] / lib / database.cc
index 8103bd96ef88c0e30f256753145f17f5583118a2..a6d15a13208a5535cb11e3da8275f73cc20284a8 100644 (file)
@@ -617,7 +617,7 @@ notmuch_database_open (const char *path,
        initialized = 1;
     }
 
-    notmuch = talloc (NULL, notmuch_database_t);
+    notmuch = talloc_zero (NULL, notmuch_database_t);
     notmuch->exception_reported = FALSE;
     notmuch->path = talloc_strdup (notmuch, path);