projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
message: Intern file names in msg_location to make them cheaper to copy.
[pspp]
/
src
/
language
/
dictionary
/
modify-variables.c
diff --git
a/src/language/dictionary/modify-variables.c
b/src/language/dictionary/modify-variables.c
index a1fe6d75df294244fe11bc168c0120e2c77f57bd..ab73bbb8990d7ded61c0701988b07c47f24b3873 100644
(file)
--- a/
src/language/dictionary/modify-variables.c
+++ b/
src/language/dictionary/modify-variables.c
@@
-295,7
+295,7
@@
cmd_modify_vars (struct lexer *lexer, struct dataset *ds)
"not be given in conjunction with the %s "
"subcommand."),
"DROP", "KEEP"
"not be given in conjunction with the %s "
"subcommand."),
"DROP", "KEEP"
-
);
+ );
goto done;
}
already_encountered |= 4;
goto done;
}
already_encountered |= 4;
@@
-360,8
+360,9
@@
cmd_modify_vars (struct lexer *lexer, struct dataset *ds)
done:
free (vm.reorder_vars);
free (vm.rename_vars);
done:
free (vm.reorder_vars);
free (vm.rename_vars);
- for (size_t i = 0; i < vm.n_rename; i++)
- free (vm.new_names[i]);
+ if (vm.new_names)
+ for (size_t i = 0; i < vm.n_rename; i++)
+ free (vm.new_names[i]);
free (vm.new_names);
free (vm.drop_vars);
return ret_code;
free (vm.new_names);
free (vm.drop_vars);
return ret_code;