From 70da2331b16c3697a9ba71d89ae12805278fd660 Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Wed, 4 Jul 2018 03:53:58 +0100 Subject: [PATCH] dtcm: Coverity 89547 --- cde/programs/dtcm/server/log.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/cde/programs/dtcm/server/log.c b/cde/programs/dtcm/server/log.c index 614cb992..4ccd3925 100644 --- a/cde/programs/dtcm/server/log.c +++ b/cde/programs/dtcm/server/log.c @@ -1301,8 +1301,6 @@ get_date_time_list_string(CSA_date_time_list list) /* do the first one */ sprintf(buf, "%s", list->date_time); - if ((ptr = strdup(buf)) == NULL) - return (NULL); if ((ptr = malloc(BUFSIZ+1)) == NULL) return (NULL); tcount = BUFSIZ; -- 2.25.1