dthelp: Change to ANSI function definitions
[oweals/cde.git] / cde / programs / dtmail / dtmail / DmxMessage.C
index 1504f2fb950f485508e839ef73b306963889b857..252022bc19b39a58cdd0ff6f4dfa530e91ae4f8d 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 libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
 /* $TOG: DmxMessage.C /main/6 1998/07/24 16:18:17 mgreess $ */
 
 /*
 // For CHARSET
 #include <LocaleXlate.h>
 #include <locale.h>
-#if !defined(USL) && !defined(__uxp__)
 #include <strings.h>
-#else 
-#include <EUSCompat.h>
-#endif 
 
 #include "Application.h"
 #include "DtMail/DtMail.hh"
@@ -73,6 +91,11 @@ DmxMsg::DmxMsg (void)
        addlInfo = NULL;
        numBPs = 0;
        cachedValues = DTM_FALSE;
+       msgHandle = NULL;
+       msgHeader.header_values = 0;
+       msgHeader.number_of_names = 0;
+       bodyParts = NULL;
+       isNew = DTM_FALSE;
 
        return;
 }
@@ -372,8 +395,7 @@ DmxMsg::display (
        strcpy(v3_cs, "DEFAULT");
        strcat(v3_cs, ".");
        strcat(v3_cs, ret);
-       if (ret)
-         free(ret);
+       free(ret);
     }
 
     // Get iconv from and to codeset and do conversion.