mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-28 21:54:10 +01:00
lib: drop two gratuitous assignments to database mode
I'm not sure what the point of modifying that right before destroying the object is. In a future commit I want to remove that element of the object, so simplify that task.
This commit is contained in:
parent
8b162b40f8
commit
c73d510f96
1 changed files with 0 additions and 2 deletions
|
@ -994,7 +994,6 @@ notmuch_database_open_verbose (const char *path,
|
||||||
" has a newer database format version (%u) than supported by this\n"
|
" has a newer database format version (%u) than supported by this\n"
|
||||||
" version of notmuch (%u).\n",
|
" version of notmuch (%u).\n",
|
||||||
notmuch_path, version, NOTMUCH_DATABASE_VERSION));
|
notmuch_path, version, NOTMUCH_DATABASE_VERSION));
|
||||||
notmuch->mode = NOTMUCH_DATABASE_MODE_READ_ONLY;
|
|
||||||
notmuch_database_destroy (notmuch);
|
notmuch_database_destroy (notmuch);
|
||||||
notmuch = NULL;
|
notmuch = NULL;
|
||||||
status = NOTMUCH_STATUS_FILE_ERROR;
|
status = NOTMUCH_STATUS_FILE_ERROR;
|
||||||
|
@ -1013,7 +1012,6 @@ notmuch_database_open_verbose (const char *path,
|
||||||
" requires features (%s)\n"
|
" requires features (%s)\n"
|
||||||
" not supported by this version of notmuch.\n",
|
" not supported by this version of notmuch.\n",
|
||||||
notmuch_path, incompat_features));
|
notmuch_path, incompat_features));
|
||||||
notmuch->mode = NOTMUCH_DATABASE_MODE_READ_ONLY;
|
|
||||||
notmuch_database_destroy (notmuch);
|
notmuch_database_destroy (notmuch);
|
||||||
notmuch = NULL;
|
notmuch = NULL;
|
||||||
status = NOTMUCH_STATUS_FILE_ERROR;
|
status = NOTMUCH_STATUS_FILE_ERROR;
|
||||||
|
|
Loading…
Reference in a new issue