fix ports/palm/coldsync: fix dumps core

PR:		51139
Submitted by:	Helge Oldach <send-pr-31231@oldach.net>
This commit is contained in:
Daichi GOTO 2003-07-03 13:01:18 +00:00
parent a517d5fd31
commit 2be3e37efb
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=84132

View file

@ -0,0 +1,11 @@
--- src/coldsync.c.ORIG Fri Apr 18 22:59:58 2003
+++ src/coldsync.c Fri Apr 18 23:10:57 2003
@@ -622,7 +622,7 @@
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. */