Index: trunk/psLib/src/sys/psLogMsg.c
===================================================================
--- trunk/psLib/src/sys/psLogMsg.c	(revision 15384)
+++ trunk/psLib/src/sys/psLogMsg.c	(revision 16337)
@@ -11,6 +11,6 @@
  *  @author GLG, MHPCC
  *
- *  @version $Revision: 1.67 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2007-10-26 02:40:24 $
+ *  @version $Revision: 1.68 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2008-02-06 20:30:49 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -197,14 +197,19 @@
     // Destination is protocol:location
     psList *protocolLocation = psStringSplit(dest, ":", false); // A list containing the protocol and location
-    if (protocolLocation->n != 2) {
+    const char *protocol, *location;    // Protocol and location for message
+    if (protocolLocation->n == 1) {
+        // "file" is the default protocol --- use it if no protocol is specified.
+        protocol = "file";
+        location = psListGet(protocolLocation, PS_LIST_TAIL); // The location
+    } else if (protocolLocation->n != 2) {
         psFree(protocolLocation);
         psError(PS_ERR_BAD_PARAMETER_VALUE, true, "Unable to parse protocol:location from: %s\n", dest);
         return -1;
-    }
-    const char *protocol = psListGet(protocolLocation, PS_LIST_HEAD); // The protocol
-    const char *location = psListGet(protocolLocation, PS_LIST_TAIL); // The location
+    } else {
+        protocol = psListGet(protocolLocation, PS_LIST_HEAD);
+        location = psListGet(protocolLocation, PS_LIST_TAIL);
+    }
 
     if (strcasecmp(protocol, "file") == 0) {
-        //        FILE *file = fopen(location, "w");
         int fileD = creat(location, 0666);
 
