Re: Balsa crashes on startup




On 10/30/2003 09:03:08 PM, tom wrote:
> It crashes on startup, so there are no user actions required to cause
> the problem. Again, it works if I am root. I figured somebody would  
> take that clue to remind me of a really stoopid permissions type of  
> problem.

Balsa should not crash even if the permissions are wrong. I suspect  
damaged configuration file. Try attached patch.

Pawel
Index: libbalsa/server.c
===================================================================
RCS file: /cvs/gnome/balsa/libbalsa/server.c,v
retrieving revision 1.22
diff -u -r1.22 server.c
--- libbalsa/server.c	15 Jul 2003 08:00:56 -0000	1.22
+++ libbalsa/server.c	31 Oct 2003 18:19:16 -0000
@@ -303,7 +303,7 @@
 {
     gboolean d;
     server->host = gnome_config_get_string("Server");
-    if(strrchr(server->host, ':') == NULL) {
+    if(server->host && strrchr(server->host, ':') == NULL) {
         gint port;
         port = gnome_config_get_int_with_default("Port", &d);
         if (!d) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]