aboutsummaryrefslogtreecommitdiffhomepage
path: root/parser.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-02-09 18:59:15 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-02-09 18:59:15 -0800
commit80e8f6a0d14a3576e3db898d6572f72d2f5a22e8 (patch)
tree3fd80a0acdcf0cd9c0d4592f437e50efd17d29e2 /parser.cpp
parente5ff5f7484c0e751172a2cab65d6d88a68ef281d (diff)
Removed halloc_wcsdup
Diffstat (limited to 'parser.cpp')
-rw-r--r--parser.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/parser.cpp b/parser.cpp
index 1263a7dd..be510331 100644
--- a/parser.cpp
+++ b/parser.cpp
@@ -1245,7 +1245,7 @@ void parser_t::parse_job_argument_list( process_t *p,
int matched_wildcard = 0, unmatched_wildcard = 0;
- wchar_t *unmatched = 0;
+ wcstring unmatched;
int unmatched_pos=0;
/*
@@ -1374,9 +1374,9 @@ void parser_t::parse_job_argument_list( process_t *p,
case EXPAND_WILDCARD_NO_MATCH:
{
unmatched_wildcard = 1;
- if( !unmatched )
+ if( unmatched.empty() )
{
- unmatched = halloc_wcsdup( j, tok_last( tok ));
+ unmatched = tok_last(tok);
unmatched_pos = tok_get_pos( tok );
}
@@ -1589,7 +1589,7 @@ void parser_t::parse_job_argument_list( process_t *p,
{
int tmp;
- debug( 1, WILDCARD_ERR_MSG, unmatched );
+ debug( 1, WILDCARD_ERR_MSG, unmatched.c_str() );
tmp = current_tokenizer_pos;
current_tokenizer_pos = unmatched_pos;