Commit 5107d2b7 by Aaron Leung

Adding a null-check in the Context constructor in case image_path hasn't been provided.

parent b504c77d
......@@ -60,7 +60,7 @@ namespace Sass {
collect_include_paths(paths_str);
setup_color_map();
string path_string(img_path_str);
string path_string(img_path_str ? img_path_str : "");
path_string = "'" + path_string + "/'";
image_path = new char[path_string.length() + 1];
std::strcpy(image_path, path_string.c_str());
......
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