From: Peter Howkins Date: Wed, 4 Jul 2018 02:53:58 +0000 (+0100) Subject: dtcm: Coverity 89547 X-Git-Tag: 2.3.0a~193 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=70da2331b16c3697a9ba71d89ae12805278fd660;p=oweals%2Fcde.git dtcm: Coverity 89547 --- 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;