Skip to content

Commit

Permalink
Add missing {} as reported by the gcc-11.
Browse files Browse the repository at this point in the history
  • Loading branch information
sobomax committed Feb 16, 2023
1 parent 87087fb commit e47c512
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/pi_http/http_fnc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2827,7 +2827,10 @@ int ph_run_pi_cmd(int mod, int cmd,
case 0:
LM_ERR("no record on clause key [%.*s]\n",
command->c_keys[0]->len, command->c_keys[0]->s);
if(c_vals) pkg_free(c_vals); c_vals = NULL;
if(c_vals) {
pkg_free(c_vals);
c_vals = NULL;
}
goto finish_page;
case 1:
LM_DBG("got [%d] rows for key [%.*s]\n",
Expand Down

0 comments on commit e47c512

Please sign in to comment.