summaryrefslogtreecommitdiff
path: root/src/select/properties.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/select/properties.c')
-rw-r--r--src/select/properties.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/select/properties.c b/src/select/properties.c
index 5342964..4338cb8 100644
--- a/src/select/properties.c
+++ b/src/select/properties.c
@@ -69,7 +69,8 @@ static uint32_t generic_destroy_uri(void *bytecode)
bool has_uri = (getValue(*((uint32_t*)bytecode)) & BACKGROUND_IMAGE_URI) == BACKGROUND_IMAGE_URI;
if (has_uri) {
- lwc_string *str = *(lwc_string **)(((uint8_t*)bytecode) + sizeof(uint32_t));
+ void *vstr = (((uint8_t*)bytecode) + sizeof(uint32_t));
+ lwc_string *str = *(lwc_string **) vstr;
lwc_string_unref(str);
}
return sizeof(uint32_t) + (has_uri ? sizeof(lwc_string*) : 0);