Index: trunk/psLib/src/sysUtils/psLogMsg.c
===================================================================
--- trunk/psLib/src/sysUtils/psLogMsg.c	(revision 1153)
+++ trunk/psLib/src/sysUtils/psLogMsg.c	(revision 1385)
@@ -11,6 +11,6 @@
  *  @author George Gusciora, MHPCC
  *
- *  @version $Revision: 1.20 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-06-30 20:22:37 $
+ *  @version $Revision: 1.21 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-08-04 23:37:39 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -132,16 +132,17 @@
         psError(__func__,"The location, %s, for protocol 'dest' is invalid.",location);
         return 1;
-    } else if (strcmp(protocol,"file") == 0) {
-        FILE* file = fopen(location,"w");
-        if (file == NULL) {
-            psError(__func__,"Could not open file '%s' for output.",location);
-            return 1;
-        }
-        if (logDest != NULL && logDest != stderr && logDest != stdout) {
-            fclose(logDest);
-        }
-        logDest = file;
-        return 0;
-    }
+    } else
+        if (strcmp(protocol,"file") == 0) {
+            FILE* file = fopen(location,"w");
+            if (file == NULL) {
+                psError(__func__,"Could not open file '%s' for output.",location);
+                return 1;
+            }
+            if (logDest != NULL && logDest != stderr && logDest != stdout) {
+                fclose(logDest);
+            }
+            logDest = file;
+            return 0;
+        }
 
     psError(__func__,"Do not know how to handle the protocol '%s'.",protocol);
@@ -336,7 +337,8 @@
     if (head_ptr > head) {
         *head_ptr++ = '|';
-    } else if (!logMsg) { // no output desired
-        return;
-    }
+    } else
+        if (!logMsg) { // no output desired
+            return;
+        }
     *head_ptr = '\0';
 
