l might contain zero strings, however there is still memory
allocated for NULL terminator, use _cleanup_strv_free_ instead to
prevent tiny leak in such case.
}
static int list_vconsole_keymaps(DBusConnection *bus, char **args, unsigned n) {
}
static int list_vconsole_keymaps(DBusConnection *bus, char **args, unsigned n) {
+ char _cleanup_strv_free_ **l = NULL;
+ char **i;
keymaps = set_new(string_hash_func, string_compare_func);
if (!keymaps)
keymaps = set_new(string_hash_func, string_compare_func);
if (!keymaps)
STRV_FOREACH(i, l)
puts(*i);
STRV_FOREACH(i, l)
puts(*i);