[libnotify] Use correct variable in NULL check
- From: William Jon McCann <mccann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libnotify] Use correct variable in NULL check
- Date: Fri, 2 Jul 2010 00:48:17 +0000 (UTC)
commit 4830863bab3b6b67792dd8013f93d1093b9c0443
Author: Jonny Lamb <jonny debian org>
Date: Thu Jul 1 20:46:04 2010 -0400
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 files changed, 1 insertions(+), 1 deletions(-)
---
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]