From 04c38ecf3d2882487fb36d4633202c60e813d17a Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Wed, 12 May 2021 22:17:44 +0530 Subject: [PATCH] Initialize variable, update musl script --- misc/musl/musl-static-ubuntu.sh | 2 +- src/nnn.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/musl/musl-static-ubuntu.sh b/misc/musl/musl-static-ubuntu.sh index 979caf09..b0587910 100755 --- a/misc/musl/musl-static-ubuntu.sh +++ b/misc/musl/musl-static-ubuntu.sh @@ -33,7 +33,7 @@ cp -v libcurses/libcurses.a libterminfo/libterminfo.a libs/ # Compile nnn cd .. [ -e "./netbsd-curses" ] || rm "$BIN" -musl-gcc -O3 -DNORL -I./netbsd-curses/libcurses -o "$BIN" src/nnn.c -Wl,-Bsymbolic-functions -L./netbsd-curses/libs -lcurses -lterminfo -static +musl-gcc -O3 -DNORL -DNOMOUSE -Wall -Wextra -Wshadow -I./netbsd-curses/libcurses -o "$BIN" src/nnn.c -Wl,-Bsymbolic-functions -L./netbsd-curses/libs -lcurses -lterminfo -static strip "$BIN" # Run the binary with it selected diff --git a/src/nnn.c b/src/nnn.c index 5d8a7373..67350ae1 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -5933,7 +5933,7 @@ static bool browse(char *ipath, const char *session, int pkey) bool watch = FALSE; #ifndef NOMOUSE - MEVENT event; + MEVENT event = {0}; struct timespec mousetimings[2] = {{.tv_sec = 0, .tv_nsec = 0}, {.tv_sec = 0, .tv_nsec = 0} }; int mousedent[2] = {-1, -1}; bool currentmouse = 1, rightclicksel = 0;