chiark / gitweb /
Make sure that keys are properly removed from hashmap
[elogind.git] / src / core / snapshot.c
index 21e89ac..d914af2 100644 (file)
@@ -200,7 +200,7 @@ int snapshot_create(Manager *m, const char *name, bool cleanup, sd_bus_error *e,
         assert(_s);
 
         if (name) {
-                if (!unit_name_is_valid(name, false))
+                if (!unit_name_is_valid(name, TEMPLATE_INVALID))
                         return sd_bus_error_setf(e, SD_BUS_ERROR_INVALID_ARGS, "Unit name %s is not valid.", name);
 
                 if (unit_name_to_type(name) != UNIT_SNAPSHOT)