X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=config.c;h=0f518c957cda48bb4fdc3aa7b472bb8a1c26a3bf;hb=cc120056a881101326488e3c5c2d3af2ce3a8de6;hp=adb5ce476a242d8ab92f3b15018a6c2c32370990;hpb=f8ba655ee4131e5c73c28a4ea854b24ce4058e1e;p=git.git diff --git a/config.c b/config.c index adb5ce47..0f518c95 100644 --- a/config.c +++ b/config.c @@ -336,8 +336,10 @@ static int store_aux(const char* key, const char* value) store.state = KEY_SEEN; store.seen++; } else if (strrchr(key, '.') - key == store.baselen && - !strncmp(key, store.key, store.baselen)) + !strncmp(key, store.key, store.baselen)) { store.state = SECTION_SEEN; + store.offset[store.seen] = ftell(config_file); + } } return 0; }