Skip to content

Commit

Permalink
PuTTie: don't mutate jump list w/ default/NULL session (fixes #12.)
Browse files Browse the repository at this point in the history
  • Loading branch information
lalbornoz committed May 3, 2024
1 parent fe6b801 commit 9f76278
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions PuTTie/winfrip_storage_adapter.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ add_session_to_jumplist(
const char *const sessionname
)
{
WfsAddJumpList(WfsGetBackend(), sessionname);
if (sessionname != NULL) {
WfsAddJumpList(WfsGetBackend(), sessionname);
}
}

void
Expand All @@ -88,7 +90,9 @@ remove_session_from_jumplist(
const char *const sessionname
)
{
WfsRemoveJumpList(WfsGetBackend(), sessionname);
if (sessionname != NULL) {
WfsRemoveJumpList(WfsGetBackend(), sessionname);
}
}

/*
Expand Down

0 comments on commit 9f76278

Please sign in to comment.