From ed08b15a06e95dab3010a2072fccad453dd3c4f7 Mon Sep 17 00:00:00 2001 From: Michal Kouril Date: Thu, 9 Jun 2022 08:58:22 -0400 Subject: [PATCH] Don't close null pointer dir. --- iceFUNprog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iceFUNprog.c b/iceFUNprog.c index 444c609..04ecc22 100644 --- a/iceFUNprog.c +++ b/iceFUNprog.c @@ -125,8 +125,8 @@ struct termios config; break; } } - } - closedir(d); + closedir(d); + } /* Decode command line parameters */ static struct option long_options[] = {