diff options
-rw-r--r-- | src/basic/util.h | 2 | ||||
-rw-r--r-- | src/network/networkd-link.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/basic/util.h b/src/basic/util.h index 1ead7b5419..1484ef58e5 100644 --- a/src/basic/util.h +++ b/src/basic/util.h @@ -83,7 +83,7 @@ int strcmp_ptr(const char *a, const char *b) _pure_; #define newdup(t, p, n) ((t*) memdup_multiply(p, sizeof(t), (n))) -#define malloc0(n) (calloc((n), 1)) +#define malloc0(n) (calloc(1, (n))) static inline void *mfree(void *memory) { free(memory); diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c index ff693ed0fd..d797a8ded8 100644 --- a/src/network/networkd-link.c +++ b/src/network/networkd-link.c @@ -823,7 +823,7 @@ static int link_enter_set_addresses(Link *link) { if (link->network->dhcp_server_emit_timezone) { _cleanup_free_ char *buffer = NULL; - const char *tz; + const char *tz = NULL; if (link->network->dhcp_server_timezone) tz = link->network->dhcp_server_timezone; |