Skip to content

Commit

Permalink
main,rfbDefaultClientSetErr: makes nullptr check unconditional
Browse files Browse the repository at this point in the history
Thanks @RokerHRO
  • Loading branch information
nicmorais committed May 12, 2024
1 parent 7091f9e commit f9aba3f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/libvncserver/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,7 @@ static void rfbDefaultClientSetErr(rfbClientPtr cl, const char *format, ...) {
if (cl->screen->clientErrorChanged != NULL)
cl->screen->clientErrorChanged(cl);

if (oldError)
free(oldError);
free(oldError);
}

rfbLogProc rfbLog=rfbDefaultLog;
Expand Down

0 comments on commit f9aba3f

Please sign in to comment.