From 793825c82ce1bea717d38c86f516643b0d18bb7d Mon Sep 17 00:00:00 2001 From: Alexander Chernov Date: Sat, 30 Dec 2023 17:18:00 +0300 Subject: [PATCH] fix --- lib/build_support.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/build_support.c b/lib/build_support.c index dbdc4052e..ef1ce1fb1 100644 --- a/lib/build_support.c +++ b/lib/build_support.c @@ -1482,7 +1482,7 @@ build_generate_makefile( if (global->advanced_layout <= 0) FAIL(SSERV_ERR_INV_CONTEST); - if (!prob->problem_dir && !prob->problem_dir[0]) { + if (!prob->problem_dir || !prob->problem_dir[0]) { get_advanced_layout_path(cnts_prob_path, sizeof(cnts_prob_path), global, NULL, NULL, 0); if (stat(cnts_prob_path, &stbuf) < 0) { fprintf(log_f, "contest problem directory '%s' does not exist", cnts_prob_path);