Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Use ucl_object_pop_key instead of ucl_object_delete_key
Baptiste Daroussin committed 12 years ago
commit 72be460338134c5bbc9670c20c6b6648e3a5885e
parent 4f3f871
1 file changed +3 -1
modified libpkg/plugins.c
@@ -352,7 +352,9 @@ pkg_plugin_parse(struct pkg_plugin *p)
			continue;
		}

-
		ucl_object_delete_key(p->conf, key);
+
		o = ucl_object_pop_key(p->conf, key);
+
		if (o != NULL)
+
			ucl_object_unref(o);
		p->conf = ucl_object_insert_key(p->conf, cur, key, strlen(key), false);
	}