From: Tobias Brunner Date: Mon, 24 Feb 2014 10:19:05 +0000 (+0100) Subject: conftest: Use path_dirname() X-Git-Tag: 5.1.2~9^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9222d586341e466f9d1804cf49f992c67b27f410;p=thirdparty%2Fstrongswan.git conftest: Use path_dirname() --- diff --git a/src/conftest/conftest.c b/src/conftest/conftest.c index ac6d697a54..584a2698a1 100644 --- a/src/conftest/conftest.c +++ b/src/conftest/conftest.c @@ -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; }