Commit 3285cd94 by Dean Mao

fix segfault

parent 066c34c6
...@@ -60,6 +60,7 @@ Handle<Value> OldRender(const Arguments& args) { ...@@ -60,6 +60,7 @@ Handle<Value> OldRender(const Arguments& args) {
strcpy(source, *astr); strcpy(source, *astr);
ctx->source_string = source; ctx->source_string = source;
ctx->options.include_paths = new char[strlen(*bstr)+1]; ctx->options.include_paths = new char[strlen(*bstr)+1];
ctx->options.image_path = new char[0];
strcpy(ctx->options.include_paths, *bstr); strcpy(ctx->options.include_paths, *bstr);
// ctx->options.output_style = SASS_STYLE_NESTED; // ctx->options.output_style = SASS_STYLE_NESTED;
ctx->options.output_style = args[3]->Int32Value(); ctx->options.output_style = args[3]->Int32Value();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment