X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=lib%2Fmessage-property.cc;h=f32d555062d2bce0decf7cd5f9b33894655e7924;hb=d848d4040ab40b61874e0f1717a1b73cfce3fda6;hp=0b13cac314f9aad61067986257273af3a7921b3b;hpb=58fe8fce1d1b7b86b4914a5a476ff21411c84082;p=notmuch diff --git a/lib/message-property.cc b/lib/message-property.cc index 0b13cac3..f32d5550 100644 --- a/lib/message-property.cc +++ b/lib/message-property.cc @@ -51,7 +51,7 @@ _notmuch_message_modify_property (notmuch_message_t *message, const char *key, c if (key == NULL || value == NULL) return NOTMUCH_STATUS_NULL_POINTER; - if (index (key, '=')) + if (strchr (key, '=')) return NOTMUCH_STATUS_ILLEGAL_ARGUMENT; term = talloc_asprintf (message, "%s=%s", key, value);