commit - 22112373e6b083a2b42ad7fc485f3dd9149e7e468f6ad5cad64bb3c1f4b5ad42
commit + 66a76ba7a7dfb72f1674f0dcd9f78c2463d49619b7a1876396d090e27590aa4d
blob - 7869a19c56edbc2cdaa77c897f7194bf7b0287a5caaea5a8d186148afe3b2777
blob + e98a594e8a4badb33e81d8b5d0982eb8f0700ced4f814ba0d49d5aa8f991168a
--- lib/pack.c
+++ lib/pack.c
free(delta_buf);
if (err)
goto done;
- if (fulltext == NULL) {
+ if (pack->delta_cache && fulltext == NULL) {
err = got_delta_cache_add_fulltext(
pack->delta_cache, delta->data_offset,
accum_buf, accum_size);
if (err)
goto done;
- if (fulltext == NULL) {
+ if (pack->delta_cache && fulltext == NULL) {
err = got_delta_cache_add_fulltext(pack->delta_cache,
delta->data_offset, accum_buf, accum_size);
if (err) {