]> git.notmuchmail.org Git - notmuch/blobdiff - notmuch-config.c
vim: add wrapper for old variable names
[notmuch] / notmuch-config.c
index befe9b5b5c8a45a084d7a3fd2738b5344fa4a7bb..6845e3c3db5d3af6f5a9d25f39d4eb8060a1e41a 100644 (file)
@@ -704,7 +704,7 @@ _item_split (char *item, char **group, char **key)
 
     *group = item;
 
-    period = index (item, '.');
+    period = strchr (item, '.');
     if (period == NULL || *(period+1) == '\0') {
        fprintf (stderr,
                 "Invalid configuration name: %s\n"