Skip to content
Snippets Groups Projects
Commit 1653d123 authored by Daniel Salzman's avatar Daniel Salzman
Browse files

tests/conf: fix clang-analyzer warning 'Dereference of null pointer'

parent 46d91a7c
No related branches found
No related tags found
No related merge requests found
/* Copyright (C) 2019 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
/* Copyright (C) 2020 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment