diff options
| author | uncrustify <david@tethera.net> | 2021-03-13 08:45:34 -0400 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2021-03-13 08:45:34 -0400 |
| commit | 8aeba1228ace947c1b689ae6ae08db5d53755917 (patch) | |
| tree | cd8e503fff2ce312726088e9e3cce175bd59d2b9 /lib/message-file.c | |
| parent | 97fadd0645e908ff8322577a983dc710bfda33d6 (diff) | |
lib: run uncrustify
This is the result of running
$ uncrustify --replace --config ../devel/uncrustify.cfg *.c *.h *.cc
in the lib directory
Diffstat (limited to 'lib/message-file.c')
| -rw-r--r-- | lib/message-file.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/message-file.c b/lib/message-file.c index 311bd478..15b0bfad 100644 --- a/lib/message-file.c +++ b/lib/message-file.c @@ -65,11 +65,12 @@ _notmuch_message_file_open_ctx (notmuch_database_t *notmuch, return NULL; const char *prefix = notmuch_database_get_path (notmuch); + if (prefix == NULL) goto FAIL; if (*filename == '/') { - if (strncmp (filename, prefix, strlen(prefix)) != 0) { + if (strncmp (filename, prefix, strlen (prefix)) != 0) { _notmuch_database_log (notmuch, "Error opening %s: path outside mail root\n", filename); errno = 0; @@ -77,7 +78,7 @@ _notmuch_message_file_open_ctx (notmuch_database_t *notmuch, } message->filename = talloc_strdup (message, filename); } else { - message->filename = talloc_asprintf(message, "%s/%s", prefix, filename); + message->filename = talloc_asprintf (message, "%s/%s", prefix, filename); } if (message->filename == NULL) |
