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

Re: [coldsync-hackers] Segfault with Coldsync and m505



On Wed, Mar 06, 2002 at 02:28:32AM -0500, Greg Leffler wrote:
> Program received signal SIGSEGV, Segmentation fault.
> 0x0804ca2e in run_mode_Standalone (argc=1, argv=0xbffff858) at coldsync.c:621
> 621		Verbose(1, _("Sync for %s at %s"),

	Oh, that. See patch below.

-- 
Andrew Arensburger                      This message *does* represent the
arensb@ooblick.com                      views of ooblick.com
		      I'm too sexy for mitosis.


diff -u -r1.113 -r1.114
--- src/coldsync.c	2001/12/09 19:51:09	1.113
+++ src/coldsync.c	2002/01/23 15:54:04	1.114
@@ -619,7 +619,8 @@
 
 	time(&now);
 	Verbose(1, _("Sync for %s at %s"),
-		(pda->name == NULL ? "unnamed PDA" : pda->name),
+		((pda == NULL || pda->name == NULL) ?
+		 "unnamed PDA" : pda->name),
 		ctime(&now));
 
 	/* See if the userid matches. */

-- 
This message was sent through the coldsync-hackers mailing list.  To remove
yourself from this mailing list, send a message to majordomo@thedotin.net
with the words "unsubscribe coldsync-hackers" in the message body.  For more
information on Coldsync, send mail to coldsync-hackers-owner@thedotin.net.