summaryrefslogtreecommitdiff
path: root/docs/examples/selection-example-1.c
diff options
context:
space:
mode:
Diffstat (limited to 'docs/examples/selection-example-1.c')
-rw-r--r--docs/examples/selection-example-1.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/examples/selection-example-1.c b/docs/examples/selection-example-1.c
index 3fb9dfe..3a6d7c7 100644
--- a/docs/examples/selection-example-1.c
+++ b/docs/examples/selection-example-1.c
@@ -127,9 +127,10 @@ print_properties_real (CRPropList *proplist)
CRPropList *cur_pair = NULL ;
for (cur_pair = proplist ; cur_pair ;
- cur_pair= cr_prop_list_get_next (cur_pair)) {
- decl = NULL ;
+ cur_pair= cr_prop_list_get_next (cur_pair)) {
gchar *str = NULL ;
+ decl = NULL ;
+
cr_prop_list_get_decl (cur_pair, &decl) ;
if (decl) {
str = cr_declaration_to_string (decl, 0) ;