diff mcabber/src/settings.c @ 1565:bff9633e38ee

Fix segfault in command /pgp (reported by Maxim Vuets)
author Mikael Berthe <mikael@lilotux.net>
date Tue, 27 Jan 2009 22:19:04 +0100
parents ac5a2c262098
children a087125d8fc8
line wrap: on
line diff
--- a/mcabber/src/settings.c	Fri Jan 16 22:35:21 2009 +0100
+++ b/mcabber/src/settings.c	Tue Jan 27 22:19:04 2009 +0100
@@ -472,7 +472,7 @@
   } else {
     pgpdata->pgp_force = value;
   }
-  if (!pgpdata->pgp_keyid)
+  if (value && pgpdata && !pgpdata->pgp_keyid)
     scr_LogPrint(LPRINT_NORMAL, "Warning: the Key Id is not set!");
 #endif
 }