Ensure that the notify pointer is valid.
authorRoy Marples <roy@marples.name>
Thu, 22 Jan 2009 18:59:37 +0000 (18:59 +0000)
committerRoy Marples <roy@marples.name>
Thu, 22 Jan 2009 18:59:37 +0000 (18:59 +0000)
main.c

diff --git a/main.c b/main.c
index 6bd3d2f2483f9d4b9da7402a2c22febee283a1a2..dec624e9ab6b889c4f2e78bdf38c454a181742ae 100644 (file)
--- a/main.c
+++ b/main.c
@@ -253,7 +253,8 @@ update_online(char **buffer)
 void
 notify_close(void)
 {
-       notify_notification_close(nn, NULL);
+       if (nn != NULL)
+               notify_notification_close(nn, NULL);
 }
 
 static void