diff --git a/libctf/ChangeLog b/libctf/ChangeLog index d07d5dc2e5..1770f9922d 100644 --- a/libctf/ChangeLog +++ b/libctf/ChangeLog @@ -1,3 +1,7 @@ +2019-06-28 Nick Alcock + + * ctf-create.c (ctf_create): Fix off-by-one error. + 2019-06-28 Nick Alcock * ctf-impl.h: (struct ctf_strs_writable): New, non-const version of diff --git a/libctf/ctf-create.c b/libctf/ctf-create.c index 6ab0cf3b88..24ea114f29 100644 --- a/libctf/ctf-create.c +++ b/libctf/ctf-create.c @@ -82,7 +82,7 @@ ctf_create (int *errp) fp->ctf_dvhash = dvhash; fp->ctf_dtnextid = 1; fp->ctf_dtoldid = 0; - fp->ctf_snapshots = 0; + fp->ctf_snapshots = 1; fp->ctf_snapshot_lu = 0; return fp;