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;