Also obtaining strings back

This commit is contained in:
Pierre Pronchery 2013-01-08 03:35:48 +01:00
parent 67b23de717
commit 493618b348

View File

@ -339,6 +339,7 @@ int variable_get_as(Variable * variable, VariableType type, void * result)
int32_t i32;
uint32_t u32;
Buffer ** b;
String ** s;
switch(type)
{
@ -513,7 +514,12 @@ int variable_get_as(Variable * variable, VariableType type, void * result)
}
break;
case VT_STRING:
/* FIXME implement */
if(variable->type == VT_STRING)
{
s = result;
*s = string_new(variable->u.string);
return 0;
}
break;
}
if(size != 0 && p != NULL)