commit 8481c7314717a962dfecf86811998345a8e4e555
parent c3fd74f6cd99ab40cd9bc41c2af155e2c6ce0b0e
Author: Frederic Cambus <fred@statdns.com>
Date: Mon, 8 Feb 2021 19:12:07 +0100
Formatting fixes: add some blank lines for better spacing.
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/statzone.c b/src/statzone.c
@@ -216,8 +216,10 @@ main(int argc, char *argv[])
strlen(previous_domain) != strlen(domain) ||
strncmp(domain, previous_domain, strlen(domain))) {
results.domains++;
+
free(previous_domain);
previous_domain = strdup(domain);
+
if (previous_domain == NULL)
error("Memory allocation error.");