aboutsummaryrefslogtreecommitdiff
path: root/src/select-keys.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2007-09-28 05:47:28 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2007-09-28 05:47:28 +0000
commit06d0ac5cfb2d71e3fab66d403b53b7d6080d48ce (patch)
treea9eea31c8bb03ee5cd74ed2578ce3a387919ffe8 /src/select-keys.c
parenta7102dc008b3526236fd976a63fb61816dde7ed3 (diff)
fixed the crash when try to use ascii-armored PGP encryption.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1917 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/select-keys.c')
-rw-r--r--src/select-keys.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/select-keys.c b/src/select-keys.c
index e5976569..d8394a93 100644
--- a/src/select-keys.c
+++ b/src/select-keys.c
@@ -101,6 +101,8 @@ update_progress (struct select_keys_s *sk, int running, const char *pattern)
static int windmill[] = { '-', '\\', '|', '/' };
char *buf;
+ if (!pattern)
+ pattern = "";
if (!running)
buf = g_strdup_printf (_("Please select key for `%s'"),
pattern);