summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2012-07-01 12:24:25 (GMT)
committer Daniel Silverstone <dsilvers@digital-scurf.org>2012-07-01 12:24:25 (GMT)
commitfc8a06f936072761bf40d727faae5486c4b99832 (patch)
tree52bc34092157201edc561621fe5b0e339d5c0c26
parent3786bf0e01a61ad32f841881b0e926940bcf6715 (diff)
downloadlibcss-fc8a06f936072761bf40d727faae5486c4b99832.tar.gz
libcss-fc8a06f936072761bf40d727faae5486c4b99832.tar.bz2
Clear up CLANG warnings in css__stylesheet_selector_append_specific
-rw-r--r--src/stylesheet.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/stylesheet.c b/src/stylesheet.c
index e37a00a..c724864 100644
--- a/src/stylesheet.c
+++ b/src/stylesheet.c
@@ -984,17 +984,17 @@ css_error css__stylesheet_selector_append_specific(css_stylesheet *sheet,
return CSS_NOMEM;
/* Copy detail into empty block */
- (&temp->data)[num_details + 1] = *detail;
+ *(d = &(&temp->data)[num_details + 1]) = *detail;
/* Flag that there's another block */
(&temp->data)[num_details].next = 1;
/* Ref the strings */
if (detail->qname.ns != NULL)
- lwc_string_ref(detail->qname.ns);
- lwc_string_ref(detail->qname.name);
+ d->qname.ns = lwc_string_ref(detail->qname.ns);
+ d->qname.name = lwc_string_ref(detail->qname.name);
if (detail->value_type == CSS_SELECTOR_DETAIL_VALUE_STRING &&
detail->value.string != NULL)
- lwc_string_ref(detail->value.string);
+ d->value.string = lwc_string_ref(detail->value.string);
(*parent) = temp;