changeset 1084:7103c3765cff

tag: use sexpr_for_each_noref We don't want to lose the cons structure of the list, but there's no reason to induce ref count churn on it. Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
author Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
date Wed, 30 Aug 2017 16:02:15 +0300
parents c8d534dfe4df
children b7534c98fec5
files tag.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tag.c	Wed Aug 30 15:20:41 2017 +0300
+++ b/tag.c	Wed Aug 30 16:02:15 2017 +0300
@@ -188,7 +188,7 @@
 
 	wordpress_cats = array_alloc(sizeof(struct str *), 0);
 
-	sexpr_for_each(cur, tmp, config.wordpress_categories) {
+	sexpr_for_each_noref(cur, tmp, config.wordpress_categories) {
 		ret = store_wordpress_category(val_getref(cur));
 		if (ret)
 			break;