[mw-devel] MW3 r1093 - trunk/src

arthur at sucs.org arthur at sucs.org
Tue Oct 27 17:29:35 GMT 2009


Author: arthur
Date: 2009-10-27 17:29:34 +0000 (Tue, 27 Oct 2009)
New Revision: 1093

Modified:
   trunk/src/talker.c
Log:
trap the error case incase it goes bang


Modified: trunk/src/talker.c
===================================================================
--- trunk/src/talker.c	2009-10-27 16:53:05 UTC (rev 1092)
+++ trunk/src/talker.c	2009-10-27 17:29:34 UTC (rev 1093)
@@ -453,7 +453,7 @@
 	} else {
 		userdb_set(USERDB_PRIVATE, user->name, "mwrc", argv[1]);
 	        char * old = userdb_get(USERDB_PRIVATE, user->name, "mwrc");
-		printf(_("Setting mwrc path to: %s\n"), old);
+		printf(_("Setting mwrc path to: %s\n"), old==NULL?"<unset>":old);
 		free(old);
 	}
 }




More information about the mw-devel mailing list