mm(1): revert changes to program_name
This commit is contained in:
parent
0641a487d7
commit
c0a5e11eef
3
src/mm.c
3
src/mm.c
@ -125,7 +125,6 @@ int main(int argc, char *argv[]) {
|
||||
size_t j;
|
||||
size_t k; /* loop index but also unbuffer status */
|
||||
int retval;
|
||||
program_name = (argv[0] == NULL ? program_name : argv[0]);
|
||||
|
||||
/* Initializes the files structs with their default values, standard
|
||||
* input and standard output. If an input or an output is specified
|
||||
@ -150,6 +149,8 @@ int main(int argc, char *argv[]) {
|
||||
|
||||
k = 0;
|
||||
|
||||
if (argc > 0) { program_name = argv[0]; }
|
||||
|
||||
if (argc > 1) {
|
||||
while ((c = getopt(argc, argv, "aehi:no:u")) != -1) {
|
||||
switch (c){
|
||||
|
Loading…
Reference in New Issue
Block a user