nsgmls: resolve coverity warnings related to uninitialed members in C++ classes
[oweals/cde.git] / cde / programs / dtpad / session.c
index af7480cd9e85b0514122cefd3609e52d712d2be3..cc66ac25b189f9adf6add67fa1a6e2c4fc906411 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
+ */
 /* $XConsortium: session.c /main/3 1995/11/01 10:39:26 rswiston $ */
 /**********************************<+>*************************************
 ***************************************************************************
@@ -296,7 +318,7 @@ restoreSession(
 
     xrm_name[0] = XrmStringToQuark ("pads");
     xrm_name[1] = XrmStringToQuark ("numActivePads");
-    xrm_name[2] = NULL;
+    xrm_name[2] = 0;
     XrmQGetResource (db, xrm_name, xrm_name, &rep_type, &value);
     numPadsToRestore = atoi((char *)value.addr);
 
@@ -309,7 +331,7 @@ restoreSession(
         * we can find.
         */
         xrm_name[0] = XrmStringToQuark ("mainWindow");
-        xrm_name[2] = NULL;
+        xrm_name[2] = 0;
 
         /* get x position */
         xrm_name[1] = XrmStringToQuark ("x");
@@ -360,7 +382,7 @@ RestoreMain(
 
     sprintf(buf, "mainWindow%d", padNum);
     xrm_name[0] = XrmStringToQuark(buf);
-    xrm_name[2] = NULL;
+    xrm_name[2] = 0;
 
     /* get x position */
     xrm_name[1] = XrmStringToQuark ("x");