projects
/
oweals
/
cde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3af957e
)
dtcm: Coverity 88884
author
Peter Howkins
<flibble@users.sf.net>
Fri, 13 Jul 2018 18:23:05 +0000
(19:23 +0100)
committer
Peter Howkins
<flibble@users.sf.net>
Fri, 13 Jul 2018 18:23:05 +0000
(19:23 +0100)
cde/programs/dtcm/dtcm/weekglance.c
patch
|
blob
|
history
diff --git
a/cde/programs/dtcm/dtcm/weekglance.c
b/cde/programs/dtcm/dtcm/weekglance.c
index 95554a995d7e4f8718c2ffe7370f9f1ba5fe0d0b..e68e22e2a7d93970f1350d5b87c5f0fe5ca0c27e 100644
(file)
--- a/
cde/programs/dtcm/dtcm/weekglance.c
+++ b/
cde/programs/dtcm/dtcm/weekglance.c
@@
-1024,6
+1024,7
@@
format_entry(Paint_cache *cache_entry, char *buf1, char *buf2,
struct tm *tm;
_Xltimeparams localtime_buf;
+ if (cache_entry == NULL || cache_entry->summary == NULL) return;
tick = cache_entry->start_time;
end_tick = cache_entry->end_time;
@@
-1033,7
+1034,6
@@
format_entry(Paint_cache *cache_entry, char *buf1, char *buf2,
* then maxchars
*/
*buf1 = *buf2 = '\0';
- if (cache_entry == NULL || cache_entry->summary == NULL) return;
tm = _XLocaltime(&tick, localtime_buf);
hour1 = tm->tm_hour;
min1 = tm->tm_min;