aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-02-28 22:40:48 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-02-28 22:40:48 +0530
commit4c8c916ca362bb28fc6a99e4853325519e185ba7 (patch)
tree20f264d4d6d1cc43b72d0a7ade949c8777fed584 /src
parent7d36f54d75054cb52c1f2c4cadc48872aef979f7 (diff)
downloadnnn-4c8c916ca362bb28fc6a99e4853325519e185ba7.tar.gz
Fix order
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nnn.c b/src/nnn.c
index d75d733..4e208d6 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -3997,6 +3997,7 @@ int main(int argc, char *argv[])
char cwd[PATH_MAX] __attribute__ ((aligned));
char *ipath = NULL;
int opt;
+ struct sigaction act;
while ((opt = getopt(argc, argv, "Slib:enp:svwh")) != -1) {
switch (opt) {
@@ -4199,8 +4200,6 @@ int main(int argc, char *argv[])
#endif
/* Ignore/handle certain signals */
- struct sigaction act;
-
memset(&act, 0, sizeof(act));
act.sa_sigaction = &sigint_handler;
act.sa_flags = SA_SIGINFO;