projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Get rid of capacity argument to ds_init() and update all callers.
[pspp-builds.git]
/
src
/
data
/
scratch-writer.c
diff --git
a/src/data/scratch-writer.c
b/src/data/scratch-writer.c
index 8bedef65677d984c67a2391cc9c47fa598d779ba..4802f4b20363b5f946660e6c920c10631fbb89b8 100644
(file)
--- a/
src/data/scratch-writer.c
+++ b/
src/data/scratch-writer.c
@@
-61,7
+61,7
@@
scratch_writer_open (struct file_handle *fh,
/* Copy the dictionary and compact if needed. */
scratch_dict = dict_clone (dictionary);
/* Copy the dictionary and compact if needed. */
scratch_dict = dict_clone (dictionary);
- if (dict_
needs_compaction
(scratch_dict))
+ if (dict_
compacting_would_shrink
(scratch_dict))
{
compactor = dict_make_compactor (scratch_dict);
dict_compact_values (scratch_dict);
{
compactor = dict_make_compactor (scratch_dict);
dict_compact_values (scratch_dict);