Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
node-sass
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
楚学文
node-sass
Commits
fff6118b
Commit
fff6118b
authored
Jul 12, 2012
by
Elliott Sales de Andrade
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some accidental out-of-scope auto-freeing.
parent
816020f0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
document.cpp
document.cpp
+8
-4
No files found.
document.cpp
View file @
fff6118b
...
@@ -32,16 +32,20 @@ namespace Sass {
...
@@ -32,16 +32,20 @@ namespace Sass {
std
::
FILE
*
f
;
std
::
FILE
*
f
;
const
char
*
path_str
=
path
.
c_str
();
const
char
*
path_str
=
path
.
c_str
();
struct
stat
st
;
struct
stat
st
;
string
tmp
;
if
(
stat
(
path_str
,
&
st
)
==
-
1
||
S_ISDIR
(
st
.
st_mode
))
{
if
(
stat
(
path_str
,
&
st
)
==
-
1
||
S_ISDIR
(
st
.
st_mode
))
{
path_str
=
(
path
+
".scss"
).
c_str
();
tmp
=
path
+
".scss"
;
path_str
=
tmp
.
c_str
();
if
(
stat
(
path_str
,
&
st
)
==
-
1
||
S_ISDIR
(
st
.
st_mode
))
{
if
(
stat
(
path_str
,
&
st
)
==
-
1
||
S_ISDIR
(
st
.
st_mode
))
{
const
char
*
full_path_str
=
path
.
c_str
();
const
char
*
full_path_str
=
path
.
c_str
();
const
char
*
file_name_str
=
Prelexer
::
folders
(
full_path_str
);
const
char
*
file_name_str
=
Prelexer
::
folders
(
full_path_str
);
path_str
=
(
Token
::
make
(
full_path_str
,
file_name_str
).
to_string
()
+
tmp
=
Token
::
make
(
full_path_str
,
file_name_str
).
to_string
()
+
"_"
+
"_"
+
string
(
file_name_str
)).
c_str
();
string
(
file_name_str
);
path_str
=
tmp
.
c_str
();
if
(
stat
(
path_str
,
&
st
)
==
-
1
||
S_ISDIR
(
st
.
st_mode
))
{
if
(
stat
(
path_str
,
&
st
)
==
-
1
||
S_ISDIR
(
st
.
st_mode
))
{
path_str
=
(
string
(
path_str
)
+
".scss"
).
c_str
();
tmp
=
tmp
+
".scss"
;
path_str
=
tmp
.
c_str
();
if
(
stat
(
path_str
,
&
st
)
==
-
1
||
S_ISDIR
(
st
.
st_mode
))
if
(
stat
(
path_str
,
&
st
)
==
-
1
||
S_ISDIR
(
st
.
st_mode
))
throw
path
;
throw
path
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment