Skip to content

Commit ae5bf89

Browse files
[CID 110294] Use the returned value of EvalExprAsStringRef
1 parent 29581c3 commit ae5bf89

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

engine/src/deploy.cpp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1015,13 +1015,10 @@ void MCIdeDmgBuild::exec_ctxt(MCExecContext& ctxt)
10151015

10161016
/////////
10171017

1018+
// SN-2015-06-19: [[ CID 100294 ]] Check the return value.
10181019
MCAutoStringRef t_string;
1019-
if (!ctxt . HasError())
1020-
{
1021-
/* UNCHECKED */ ctxt . EvalExprAsStringRef(m_filename, EE_UNDEFINED, &t_string);
1022-
}
1023-
1024-
if (!ctxt . HasError())
1020+
if (!ctxt . HasError()
1021+
&& ctxt . EvalExprAsStringRef(m_filename, EE_UNDEFINED, &t_string))
10251022
{
10261023
MCAutoPointer<char> temp;
10271024
if (!MCStringConvertToCString(*t_string, &temp))

0 commit comments

Comments
 (0)