dtcm: Coverity 89547
authorPeter Howkins <flibble@users.sf.net>
Wed, 4 Jul 2018 02:53:58 +0000 (03:53 +0100)
committerPeter Howkins <flibble@users.sf.net>
Wed, 4 Jul 2018 02:53:58 +0000 (03:53 +0100)
cde/programs/dtcm/server/log.c

index 614cb992d89b1d9d0572f9941240ad1f4b476f1e..4ccd3925055a6a939924c767d4452e3047148cf8 100644 (file)
@@ -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;