From: Peter Howkins Date: Fri, 13 Jul 2018 18:14:45 +0000 (+0100) Subject: dtcm: Coverity 87942 X-Git-Tag: 2.3.0a~66 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=67fb14c52b9f7d8d53fe2b12c50d289b57eb333d;p=oweals%2Fcde.git dtcm: Coverity 87942 --- diff --git a/cde/programs/dtcm/dtcm/cm_insert.c b/cde/programs/dtcm/dtcm/cm_insert.c index f445141b..40441726 100644 --- a/cde/programs/dtcm/dtcm/cm_insert.c +++ b/cde/programs/dtcm/dtcm/cm_insert.c @@ -189,7 +189,7 @@ prompt_for_insert(Props *p) { format_time(now(), dt, cm_start); prompt_for_line(catgets(DT_catd, 1, 196, "Start (%s): "), cm_start, cm_start); - if (cm_start && cm_start[0]) + if (cm_start[0]) { timecopy = (char *)cm_strdup(cm_start); if (valid_time(p, timecopy)) @@ -205,7 +205,7 @@ prompt_for_insert(Props *p) { next = next + hrsec; format_time(next, dt, cm_end); - if (cm_start && cm_start[0]) + if (cm_start[0]) prompt_for_line( catgets(DT_catd, 1, 198, "End (%s): "), cm_end, cm_end); else