Skip to content

Commit

Permalink
Merge pull request #55 from pfrouleau/fix/get_exec_name
Browse files Browse the repository at this point in the history
Fix get_exec_name(): when partclone in installed, there is no '/' in argv0
  • Loading branch information
Thomas-Tsai authored Jun 21, 2024
2 parents 910fb64 + 4ba7b88 commit c994cd8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/partclone.c
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,9 @@ static void save_program_name(const char* argv0) {
const char* last_slash = strrchr(argv0, '/');

if (last_slash != 0) {

exec_name = last_slash + 1;
} else {
exec_name = argv0;
}
}

Expand Down

0 comments on commit c994cd8

Please sign in to comment.