projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4bab530
)
dataset: Fix measure guesser.
author
Ben Pfaff
<blp@cs.stanford.edu>
Fri, 5 Aug 2022 00:40:41 +0000
(17:40 -0700)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Fri, 5 Aug 2022 00:40:41 +0000
(17:40 -0700)
src/data/dataset.c
patch
|
blob
|
history
diff --git
a/src/data/dataset.c
b/src/data/dataset.c
index 41b467a0ae7a85cf79cb91967dff915ab9b919ac..450383fb875df81a71807ae7326de0768214330b 100644
(file)
--- a/
src/data/dataset.c
+++ b/
src/data/dataset.c
@@
-1142,6
+1142,8
@@
measure_guesser_run (struct measure_guesser *mg,
while (mg->n_vars > 0)
{
struct ccase *c = casereader_read (r);
+ if (!c)
+ break;
measure_guesser_add_case (mg, c);
case_unref (c);
}