Skip to content

Commit

Permalink
fix empty output variables
Browse files Browse the repository at this point in the history
  • Loading branch information
blackav committed Jan 27, 2024
1 parent 8306911 commit 0ac11f0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions csp/super-server/prob_save_checking_form.csp
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@
}

if (prob_id <= 0) {
// abstract problem
i = -prob_id;
if (i >= phr->ss->aprob_u) FAIL(SSERV_ERR_INVALID_PARAMETER);
prob = phr->ss->aprobs[i];
Expand All @@ -174,6 +175,15 @@
if (stop_on_first_fail < 0) stop_on_first_fail = 0;
if (valuer_sets_marked < 0) valuer_sets_marked = 0;
if (interactive_valuer < 0) interactive_valuer = 0;
if (standard_checker && !standard_checker[0]) {
standard_checker = NULL;
}
if (valuer_cmd && !valuer_cmd[0]) {
xfree(valuer_cmd); valuer_cmd = NULL;
}
if (standard_valuer && !standard_valuer[0]) {
xfree(standard_valuer); standard_valuer = NULL;
}
} else {
i = prob_id;
if (i >= phr->ss->prob_a) FAIL(SSERV_ERR_INVALID_PARAMETER);
Expand Down

0 comments on commit 0ac11f0

Please sign in to comment.