]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
conftest: Use path_dirname()
authorTobias Brunner <tobias@strongswan.org>
Mon, 24 Feb 2014 10:19:05 +0000 (11:19 +0100)
committerTobias Brunner <tobias@strongswan.org>
Mon, 24 Feb 2014 11:04:11 +0000 (12:04 +0100)
src/conftest/conftest.c

index ac6d697a542bcfe13cd6cca3df739ff0774da279..584a2698a17982a721165220d02738e366562d83 100644 (file)
@@ -81,7 +81,7 @@ static bool load_configs(char *suite_file, char *test_file)
        }
        conftest->test = settings_create(suite_file);
        conftest->test->load_files(conftest->test, test_file, TRUE);
-       conftest->suite_dir = strdup(dirname(suite_file));
+       conftest->suite_dir = path_dirname(suite_file);
        return TRUE;
 }