diff options
author | Nathan Scott <nathans@redhat.com> | 2023-04-04 16:47:11 +1000 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2023-04-06 00:19:54 +0200 |
commit | 14da84f877a0f3627ddaea836c9537b2292fa22d (patch) | |
tree | d8eff482c76709187482e41eb36628b5de935078 /htop.c | |
parent | e7f447b6a3473a572d3e6c191128f1796477860d (diff) |
Refactor to use a program name pointer instead of PACKAGE macro
During SEGV handling under pcp-htop several incorrect strings were
observed - in particular reporting htop as the binary name instead
of pcp-htop. This is something we want to be crystal clear on when
we request user stack traces etc, so make sure this cannot be done
incorrectly.
Diffstat (limited to 'htop.c')
-rw-r--r-- | htop.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -11,6 +11,8 @@ in the source distribution for its full text. #include "CommandLine.h" +const char* program = PACKAGE; + int main(int argc, char** argv) { - return CommandLine_run(PACKAGE, argc, argv); + return CommandLine_run(argc, argv); } |