diff options
author | Jonny Lamb <jonny@debian.org> | 2010-07-01 20:46:04 -0400 |
---|---|---|
committer | William Jon McCann <jmccann@redhat.com> | 2010-07-01 20:48:35 -0400 |
commit | efeeee9269c633d49534fa93db417f172ae7da8e (patch) | |
tree | 98854241b0e8ab0cb51564faef9e63c908a7b0a3 | |
parent | b98b25a98536481082966f99555c2382c8ca8c7c (diff) | |
download | libnotify-efeeee9269c633d49534fa93db417f172ae7da8e.tar.gz |
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
(cherry picked from commit 4830863bab3b6b67792dd8013f93d1093b9c0443)
-rw-r--r-- | libnotify/notify.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libnotify/notify.c b/libnotify/notify.c index 1f53b39..d0c00a2 100644 --- a/libnotify/notify.c +++ b/libnotify/notify.c @@ -340,7 +340,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); |