Initialize variable, update musl script

This commit is contained in:
Arun Prakash Jana 2021-05-12 22:17:44 +05:30
parent 1b88062310
commit 04c38ecf3d
No known key found for this signature in database
GPG key ID: A75979F35C080412
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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;