Package: worklog Version: 2.1 Severity: minor Tags: patch worklog.c: In function ‘exit_handler’: worklog.c:365:7: warning: ‘seconds’ may be used uninitialized in this function [-Wmaybe-uninitialized] if(!seconds)
Because seconds is unitialized, the summary always prints incorrectly, always printing out the last project even if that wasn't touched, and not printing anything else. The following patch fixes the bug. 364a365 > seconds=(double) project->time; 367d367 < seconds=(double) project->time; -- System Information: Debian Release: 10.8 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'proposed-updates'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 4.19.0-12-amd64 (SMP w/12 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages worklog depends on: ii libc6 2.28-10 ii libncurses6 6.1+20181013-2+deb10u2 ii libtinfo6 6.1+20181013-2+deb10u2 worklog recommends no packages. worklog suggests no packages. -- no debconf information