diff options
| author | David Bremner <david@tethera.net> | 2018-09-03 12:26:10 -0300 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2018-09-06 08:07:13 -0300 |
| commit | ac2146118b83ca08aa6dd1275f65eefaed9fe2c0 (patch) | |
| tree | a140b6ea08bd1ca412ac561bee270c9822154b8b /lib/thread.cc | |
| parent | b9d4eb04126c3ac4e7287443de7eae7290cd5273 (diff) | |
use EMPTY_STRING in _parent_via_in_reply_to
This is a review suggestion [1] of Tomi. I decided not to squash it
so that the code movement remains clear.
[1]: id:m2pnxxgf5q.fsf@guru.guru-group.fi
Diffstat (limited to 'lib/thread.cc')
| -rw-r--r-- | lib/thread.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/thread.cc b/lib/thread.cc index 62dbd3b3..4711319d 100644 --- a/lib/thread.cc +++ b/lib/thread.cc @@ -402,7 +402,7 @@ _parent_via_in_reply_to (notmuch_thread_t *thread, notmuch_message_t *message) { THREAD_DEBUG("checking message = %s in_reply_to=%s\n", notmuch_message_get_message_id (message), in_reply_to); - if (in_reply_to && strlen (in_reply_to) && + if (in_reply_to && (! EMPTY_STRING(in_reply_to)) && g_hash_table_lookup_extended (thread->message_hash, in_reply_to, NULL, (void **) &parent)) { |
