Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
blackav committed Dec 30, 2023
1 parent 26927e8 commit 793825c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/build_support.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 793825c

Please sign in to comment.