diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2017-11-21 15:11:50 +0100 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2017-11-21 15:11:50 +0100 |
commit | 1e3a2797660ee61fd835739240bb8a2215cede80 (patch) | |
tree | a46248d628f3737d1871d91c6530b8a3ca73c302 | |
parent | a5cf255b471ad7113247d552d5695db0cb720882 (diff) | |
download | libgit2-cmn/tmp.tar.gz |
crashdebugcmn/tmp
-rw-r--r-- | src/attrcache.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/attrcache.c b/src/attrcache.c index a57110684..9b4b6f8f7 100644 --- a/src/attrcache.c +++ b/src/attrcache.c @@ -211,6 +211,12 @@ int git_attr_cache__get( git_attr_file_entry *entry = NULL; git_attr_file *file = NULL, *updated = NULL; + if (cache == NULL) { + printf("the cache is NULL, repo probably freed\n"); + printf("config 0x%p\n", repo->_config); + error = *((int *)0xdeadbeefdeafbeef); + } + if ((error = attr_cache_lookup( &file, &entry, repo, attr_session, source, base, filename)) < 0) return error; |