dtcm: Coverity 176055
authorPeter Howkins <flibble@users.sf.net>
Fri, 13 Jul 2018 18:05:33 +0000 (19:05 +0100)
committerPeter Howkins <flibble@users.sf.net>
Fri, 13 Jul 2018 18:05:33 +0000 (19:05 +0100)
cde/programs/dtcm/server/lookup.c

index e27549e8ad26c9296e506474d2323af6ddafee48..cb98523d9ad21c9d626066676ad224ed02c6b3b4 100644 (file)
@@ -345,7 +345,7 @@ _DtCmsGetEntryAttrByKey(
        char            sbuf[TIME_BUF_LEN], ebuf[TIME_BUF_LEN];
        time_t          firsttick = 0;
        List_node       *lnode;
-       cms_get_entry_attr_res_item *res;
+       cms_get_entry_attr_res_item *res = NULL;
 
        if (entry_r == NULL && res_r == NULL)
                return (CSA_E_INVALID_PARAMETER);