tree-wide: use strv_free_and_replace() macro

This commit is contained in:
Yu Watanabe
2018-05-10 00:57:34 +09:00
parent 947f9f01a1
commit 130d3d22e9
9 changed files with 24 additions and 63 deletions
+1 -3
View File
@@ -1078,9 +1078,7 @@ static int map_basic(sd_bus *bus, const char *member, sd_bus_message *m, unsigne
if (r < 0)
return r;
strv_free(*p);
*p = TAKE_PTR(l);
return 0;
return strv_free_and_replace(*p, l);
}
case SD_BUS_TYPE_BOOLEAN: {