aboutsummaryrefslogtreecommitdiffhomepage
path: root/builtin.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-02-13 11:55:02 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-02-13 11:55:02 -0800
commit0f8ffa62266565017568262b02cecde6f12336b4 (patch)
treede3a839aab399016b2691786f4c50109214358ae /builtin.cpp
parent6def61dfe982fe508ba19dd35aca0013079b4bff (diff)
For for crash printing backtrace for command "eval cd sldkfjsdlfk"
Diffstat (limited to 'builtin.cpp')
-rw-r--r--builtin.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/builtin.cpp b/builtin.cpp
index c880d159..dbaf5714 100644
--- a/builtin.cpp
+++ b/builtin.cpp
@@ -2794,7 +2794,9 @@ static int builtin_source( parser_t &parser, wchar_t ** argv )
parser.push_block( SOURCE );
reader_push_current_filename( fn_intern );
- parser.current_block->state1<const wchar_t *>() = fn_intern;
+ // PCA We need the state to be a wcstring; it would be nice to figure out how to restore this optimization however
+ //parser.current_block->state1<const wchar_t *>() = fn_intern;
+ parser.current_block->state1<wcstring>() = fn_intern;
parse_util_set_argv( (argc>2)?(argv+2):(argv+1), wcstring_list_t());