chiark / gitweb /
systemd-run: make sure --nice=, --uid=, --gid=, --setenv= also work in --scope mode
[elogind.git] / src / shared / hashmap.c
index b1dccaf4e7d34bcb67afca93d6f8e2ae799b9aff..65b7b741284bdcb5c0ad673cf6ae6b24110d66ea 100644 (file)
@@ -201,7 +201,7 @@ Hashmap *hashmap_new(hash_func_t hash_func, compare_func_t compare_func) {
                 if (!h)
                         return NULL;
 
-                memset(h, 0, size);
+                memzero(h, size);
         } else {
                 h = malloc0(size);