dtwm: Coverity 88325
authorPeter Howkins <flibble@users.sf.net>
Mon, 2 Jul 2018 19:40:04 +0000 (20:40 +0100)
committerPeter Howkins <flibble@users.sf.net>
Mon, 2 Jul 2018 19:40:04 +0000 (20:40 +0100)
cde/programs/dtwm/Session.c

index 6c428372a640afc32bc72a3c2eb23581e3eada5b..71c31764853fa07347c36949a99ebce65d7f6b1d 100644 (file)
@@ -310,7 +310,7 @@ SessionRestoreData (void)
 
       if (panel.dynamic_data_count > 0) {
        panel.dynamic_data_list = (DynamicComponent **)
-         XtMalloc (sizeof (DynamicComponent **) * panel.max_dynamic_data_count);
+         XtMalloc (sizeof (DynamicComponent *) * panel.max_dynamic_data_count);
       }
 
       dynamic_data_count = 0;