sw

simple wallet
git clone git://git.bitsmanent.org/sw
Log | Files | Refs | README | LICENSE

commit 450baa70bd0e63009fbc6ff2ec9802231f499932
parent ba2d40cebc17ad19cf3060781c23043fea5701e6
Author: Claudio Alessi <smoppy@gmail.com>
Date:   Mon, 16 Apr 2018 22:49:51 +0200

Show movements after adding a record.

Diffstat:
Msw.c | 5+----
1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/sw.c b/sw.c @@ -201,11 +201,10 @@ sortmovs(void) { int strtots(char *s) { - struct tm tm = {0}; + struct tm tm = {.tm_isdst = - 1}; if(!strcmp(s, "now")) return time(NULL); - tm.tm_isdst = -1; strptime(s, "%d/%m/%Y %H:%M", &tm); return mktime(&tm); } @@ -246,8 +245,6 @@ main(int argc, char *argv[]) { usage(); addmov(argv[0], atof(argv[1]), argv[2]); savemovs(); - freemovs(); - return 0; } sortmovs(); showmovs(limit);