From 4830863bab3b6b67792dd8013f93d1093b9c0443 Mon Sep 17 00:00:00 2001 From: Jonny Lamb Date: Thu, 1 Jul 2010 20:46:04 -0400 Subject: [PATCH] Use correct variable in NULL check If you pass NULL as the fourth argument to notify_get_server_info it segfaults. https://bugzilla.gnome.org/show_bug.cgi?id=623096 --- libnotify/notify.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libnotify/notify.c b/libnotify/notify.c index 8491cf1..428084e 100644 --- a/libnotify/notify.c +++ b/libnotify/notify.c @@ -383,7 +383,7 @@ notify_get_server_info (char **ret_name, g_free (version); } - if (spec_version != NULL) { + if (ret_spec_version != NULL) { *ret_spec_version = spec_version; } else { g_free (spec_version);