projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Change explicit variable name checks into use of dict_class_from_id().
[pspp]
/
src
/
weight.c
diff --git
a/src/weight.c
b/src/weight.c
index fd19f8c8978a371ea6f3003dc4a92a6f2eca32f1..41dc33f65562becfde277be97d86165e320a50e1 100644
(file)
--- a/
src/weight.c
+++ b/
src/weight.c
@@
-54,7
+54,7
@@
cmd_weight (void)
msg (SE, _("The weighting variable must be numeric."));
return CMD_FAILURE;
}
- if (
v->name[0] == '#'
)
+ if (
dict_class_from_id (v->name) == DC_SCRATCH
)
{
msg (SE, _("The weighting variable may not be scratch."));
return CMD_FAILURE;