intcmp(1): move program_name ternary

This commit is contained in:
Emma Tebibyte 2024-07-28 17:49:39 -06:00
parent d2ae35eac9
commit 68e31058a8
Signed by: emma
GPG Key ID: 06FA419A1698C270

View File

@ -44,10 +44,10 @@ int main(int argc, char *argv[]) {
size_t i; size_t i;
unsigned char mode; unsigned char mode;
int r; /* reference integer */ int r; /* reference integer */
program_name = (argv[0] == NULL ? program_name : argv[0]);
mode = 0; mode = 0;
program_name = (argv[0] == NULL ? program_name : argv[0]);
if (argc == 0) { return usage(program_name); } if (argc == 0) { return usage(program_name); }
while ((c = getopt(argc, argv, "egl")) != -1) { while ((c = getopt(argc, argv, "egl")) != -1) {