projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
str: Replace ss_alloc_substring() by ss_clone() and similarly with a pool.
[pspp]
/
src
/
language
/
expressions
/
parse.c
diff --git
a/src/language/expressions/parse.c
b/src/language/expressions/parse.c
index f1800f3775afeca8078d9916c608d8f5100fe0c9..397121f913c51427d64258b41af4c39a8a83710e 100644
(file)
--- a/
src/language/expressions/parse.c
+++ b/
src/language/expressions/parse.c
@@
-863,9
+863,7
@@
expr_date (struct expression *e, int year_digits)
: xasprintf ("%02d-%s-%04d", time->tm_mday, months[time->tm_mon],
time->tm_year + 1900));
: xasprintf ("%02d-%s-%04d", time->tm_mday, months[time->tm_mon],
time->tm_year + 1900));
- struct substring s;
- ss_alloc_substring_pool (&s, ss_cstr (tmp), e->expr_pool);
-
+ struct substring s = ss_clone_pool (ss_cstr (tmp), e->expr_pool);
free (tmp);
return expr_allocate_string (e, s);
free (tmp);
return expr_allocate_string (e, s);