From 429d0642090e91bc35dfcf7f5e04082d6bb9d250 Mon Sep 17 00:00:00 2001 From: DTB Date: Sat, 27 Jul 2024 18:22:43 -0600 Subject: [PATCH] mm(1): fix argv use --- src/mm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mm.c b/src/mm.c index e57e3b3..1d97ab5 100644 --- a/src/mm.c +++ b/src/mm.c @@ -147,9 +147,9 @@ int main(int argc, char *argv[]) { k = 0; - if (argc > 0) { program_name = argv[0]; } + if (argc > 0) { + program_name = argv[0]; - if (argc > 1) { while ((c = getopt(argc, argv, "aehi:no:u")) != -1) { switch (c){ case 'a': /* "rb+" -> "ab" */