nsgmls: resolve coverity warnings related to uninitialed members in C++ classes
[oweals/cde.git] / cde / programs / dtcreate / af_aux.c
index adacb5e423bb18d02265c0719ca8e573e5c3b73e..76c4757b6c60e6963cd5b8e6487f893ffb5543b3 100644 (file)
@@ -1,3 +1,25 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these librararies and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
 /* $TOG: af_aux.c /main/6 1998/04/06 13:14:19 mgreess $ */
 /******************************************************************************/
 /*                                                                            */
@@ -21,6 +43,7 @@
 #include <Xm/RowColumnP.h>
 #include <Xm/MessageB.h>
 #include <Xm/FileSB.h>
+#include <Xm/List.h>
 #include <sys/stat.h>
 #if defined(AIXV3)
 #    include <sys/dir.h>
 
 #include "dtcreate.h"
 #include "af_aux.h"
+#include "cmncbs.h"
 #include "cmnutils.h"
 #include "cmnrtns.h"
+#include "ErrorDialog.h"
+#include "FileCharacteristics.h"
 
 /******************************************************************************/
 /*                                                                            */
@@ -123,7 +149,8 @@ void activateCB_filetype_icon (Widget wid, XtPointer client_data,
     printf("DblClick icon callback.\n");
 #endif
 
-    activateCB_edit_icon(wid, CA_FILETYPE_ICONS, cbs);
+    activateCB_edit_icon(wid, (XtPointer)CA_FILETYPE_ICONS,
+       (XmPushButtonCallbackStruct *)cbs /* unused anyway */);
 
   }
 
@@ -236,7 +263,6 @@ void getAF_Icons(FiletypeData *pFiletypedata)
   /* Tiny Bitmap                                                 */
   /***************************************************************/
   if ( (pIconData->bmDirtyBit) &&
-       (pIconData->bmFileName) &&
        (strlen(pIconData->bmFileName)) ) {
      pFiletypedata->pszTinyBmIcon = XtMalloc(strlen(pIconData->bmFileName) + 1);
      if (pFiletypedata->pszTinyBmIcon) {