dthelp: Change to ANSI function definitions
[oweals/cde.git] / cde / programs / dtmail / dtmail / WMSaveSession.C
index fcccf0a34dad2430c4b349cbdc5b7c306a5d3142..fcb5d02e47d07dd21eccd16c7b51bdaa071a5d92 100644 (file)
@@ -16,7 +16,7 @@
  * details.
  *
  * You should have received a copy of the GNU Lesser General Public
- * License along with these librararies and programs; if not, write
+ * 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
  */
@@ -181,8 +181,7 @@ RoamApp::openSessionFile(char *filename)
 
     LOG_FPRINTF(log, (log,"Opened session file: %s\n",pathname));
     LOG_CLOSEFILEPTR(log);
-    if (pathname != NULL)
-      XtFree((char *)pathname);
+    XtFree((char *)pathname);
 }
 
 /*
@@ -437,7 +436,7 @@ RoamMenuWindow::restoreSession(char *buf)
                do
                {
                    ptr = strchr (workspaces, '*');
-                   if (ptr != NULL) *ptr = NULL;
+                   if (ptr != NULL) *ptr = 0;
                                
                    workspace_atoms = (Atom*) XtRealloc(
                                        (char*) workspace_atoms, 
@@ -638,7 +637,7 @@ SendMsgDialog::restoreSession(char *buf)
                do
                {
                    ptr = strchr(workspaces, '*');
-                   if (ptr != NULL) *ptr = NULL;
+                   if (ptr != NULL) *ptr = 0;
                                
                    workspace_atoms = (Atom*) XtRealloc(
                                        (char*) workspace_atoms,