libctf, create: empty dicts are dirty to start with
Without this, an empty dict that is written out immediately never gets any content at all: even the header is left empty. libctf/ * ctf-create.c (ctf_create): Mark dirty.
This commit is contained in:
parent
f47ca31135
commit
dd987f0043
2 changed files with 5 additions and 0 deletions
|
@ -126,6 +126,7 @@ ctf_create (int *errp)
|
|||
fp->ctf_dtoldid = 0;
|
||||
fp->ctf_snapshots = 1;
|
||||
fp->ctf_snapshot_lu = 0;
|
||||
fp->ctf_flags |= LCTF_DIRTY;
|
||||
|
||||
ctf_set_ctl_hashes (fp);
|
||||
ctf_setmodel (fp, CTF_MODEL_NATIVE);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue