summaryrefslogtreecommitdiff
path: root/src/lib/eolian/database_expr_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/eolian/database_expr_api.c')
-rw-r--r--src/lib/eolian/database_expr_api.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/eolian/database_expr_api.c b/src/lib/eolian/database_expr_api.c
index 6aaa1bb9be..2d3f81c73d 100644
--- a/src/lib/eolian/database_expr_api.c
+++ b/src/lib/eolian/database_expr_api.c
@@ -152,8 +152,10 @@ _expr_serialize(const Eolian_Expression *expr, Eina_Strbuf *buf, Eina_Bool outer
152 case EOLIAN_EXPR_STRING: 152 case EOLIAN_EXPR_STRING:
153 case EOLIAN_EXPR_CHAR: 153 case EOLIAN_EXPR_CHAR:
154 { 154 {
155 Eolian_Value *v = (Eolian_Value*)&expr->type; 155 Eolian_Value v;
156 const char *x = eolian_expression_value_to_literal(v); 156 v.type = expr->type;
157 v.value = expr->value;
158 const char *x = eolian_expression_value_to_literal(&v);
157 if (!x) 159 if (!x)
158 return EINA_FALSE; 160 return EINA_FALSE;
159 eina_strbuf_append(buf, x); 161 eina_strbuf_append(buf, x);