1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

dtcm: Coverity 88884

This commit is contained in:
Peter Howkins 2018-07-13 19:23:05 +01:00
parent 3af957e308
commit f4a5433f32

View file

@ -1024,6 +1024,7 @@ format_entry(Paint_cache *cache_entry, char *buf1, char *buf2,
struct tm *tm; struct tm *tm;
_Xltimeparams localtime_buf; _Xltimeparams localtime_buf;
if (cache_entry == NULL || cache_entry->summary == NULL) return;
tick = cache_entry->start_time; tick = cache_entry->start_time;
end_tick = cache_entry->end_time; end_tick = cache_entry->end_time;
@ -1033,7 +1034,6 @@ format_entry(Paint_cache *cache_entry, char *buf1, char *buf2,
* then maxchars * then maxchars
*/ */
*buf1 = *buf2 = '\0'; *buf1 = *buf2 = '\0';
if (cache_entry == NULL || cache_entry->summary == NULL) return;
tm = _XLocaltime(&tick, localtime_buf); tm = _XLocaltime(&tick, localtime_buf);
hour1 = tm->tm_hour; hour1 = tm->tm_hour;
min1 = tm->tm_min; min1 = tm->tm_min;