projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
spv-driver: Fix memory leak on error path.
[pspp]
/
src
/
language
/
utilities
/
cd.c
diff --git
a/src/language/utilities/cd.c
b/src/language/utilities/cd.c
index ec5e7646f4ee1bba3fb610d9aa7f45fc7ba1d43c..d82ce406a82704bcef689039e04391c5f5f340de 100644
(file)
--- a/
src/language/utilities/cd.c
+++ b/
src/language/utilities/cd.c
@@
-42,8
+42,8
@@
cmd_cd (struct lexer *lexer, struct dataset *ds UNUSED)
if (-1 == chdir (path))
{
int err = errno;
if (-1 == chdir (path))
{
int err = errno;
-
msg (SE
, _("Cannot change directory to %s: %s"), path,
- strerror (err));
+
lex_error (lexer
, _("Cannot change directory to %s: %s"), path,
+
strerror (err));
goto error;
}
goto error;
}