From dd9b5ca1908e7c50e882c4a094487853841a71a1 Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Mon, 2 Jul 2018 20:37:21 +0100 Subject: [PATCH] dtwm: Coverity 88714 --- cde/programs/dtwm/DataBaseLoad.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cde/programs/dtwm/DataBaseLoad.c b/cde/programs/dtwm/DataBaseLoad.c index d2a85020..0fe94013 100644 --- a/cde/programs/dtwm/DataBaseLoad.c +++ b/cde/programs/dtwm/DataBaseLoad.c @@ -711,7 +711,7 @@ _DtPerfChkpntMsgSend("End Front panel database read"); /* Continue the elimination of unused records */ - name_list = (char **) XtMalloc (sizeof (char **) * 2); + name_list = (char **) XtMalloc (sizeof (char *) * 2); if (switch_count != 0) name_list[0] = switch1->element_values[SWITCH_NAME].parsed_value; else -- 2.25.1