mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
Fix LGTM alerts
This commit is contained in:
parent
1241a4d75d
commit
1fde10b022
|
@ -21,7 +21,7 @@
|
|||
# #############################################################################
|
||||
|
||||
import sys
|
||||
from subprocess import Popen, PIPE, DEVNULL
|
||||
from subprocess import Popen, PIPE
|
||||
|
||||
if len(sys.argv) < 3:
|
||||
print('usage: natool [-a] [-l] [-x] [archive] [file/dir]')
|
||||
|
|
|
@ -3603,10 +3603,11 @@ static void print_icon(const struct entry *ent, const int attrs)
|
|||
|
||||
static void print_time(const time_t *timep)
|
||||
{
|
||||
struct tm *t = localtime(timep);
|
||||
struct tm t;
|
||||
|
||||
localtime_r(timep, &t);
|
||||
printw("%s-%02d-%02d %02d:%02d",
|
||||
xitoa(t->tm_year + 1900), t->tm_mon + 1, t->tm_mday, t->tm_hour, t->tm_min);
|
||||
xitoa(t.tm_year + 1900), t.tm_mon + 1, t.tm_mday, t.tm_hour, t.tm_min);
|
||||
}
|
||||
|
||||
static char get_detail_ind(const mode_t mode)
|
||||
|
|
Loading…
Reference in a new issue