From 67fb14c52b9f7d8d53fe2b12c50d289b57eb333d Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Fri, 13 Jul 2018 19:14:45 +0100 Subject: [PATCH] dtcm: Coverity 87942 --- cde/programs/dtcm/dtcm/cm_insert.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.25.1