From: Daniel Salzman Date: Sun, 19 Jul 2020 17:46:45 +0000 (+0200) Subject: tests/conf: fix clang-analyzer warning 'Dereference of null pointer' X-Git-Tag: v3.0.0~74 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1653d123232ae8a17b05ec680dc8cd7216d7d341;p=thirdparty%2Fknot-dns.git tests/conf: fix clang-analyzer warning 'Dereference of null pointer' --- diff --git a/tests/knot/test_conf.c b/tests/knot/test_conf.c index c7f6d51eae..e1b3c439d6 100644 --- a/tests/knot/test_conf.c +++ b/tests/knot/test_conf.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2019 CZ.NIC, z.s.p.o. +/* Copyright (C) 2020 CZ.NIC, z.s.p.o. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -29,7 +29,7 @@ static void check_name(const char *zone, const char *name, const char *ref) { knot_dname_t *z = knot_dname_from_str_alloc(zone); - char *file = get_filename(NULL, NULL, z, name); + char *file = get_filename(conf(), NULL, z, name); ok(file != NULL, "Get zonefile path for %s", zone); if (file != NULL) { ok(strcmp(file, ref) == 0, "Zonefile path compare %s", name);