nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 04c38ecf3d2882487fb36d4633202c60e813d17a
parent 1b88062310ed2e83615be26f0b9ea36856ff894a
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date:   Wed, 12 May 2021 22:17:44 +0530

Initialize variable, update musl script

Diffstat:
Mmisc/musl/musl-static-ubuntu.sh | 2+-
Msrc/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 @@ -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 @@ -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;