Commit 52e41ffb authored by Juan Pablo Ugarte's avatar Juan Pablo Ugarte Committed by Sebastien Granjoux

mk-project: Prevent a crash

parent 91ddaa39
......@@ -667,6 +667,8 @@ mkp_project_get_variable_token (MkpProject *project, AnjutaToken *variable)
length = anjuta_token_get_length (variable);
string = anjuta_token_get_string (variable);
if ((length == 0) || (string == NULL)) return NULL;
if (string[1] == '(')
{
name = g_strndup (string + 2, length - 3);
......
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