[libnotify/0.5] Use correct variable in NULL check



commit efeeee9269c633d49534fa93db417f172ae7da8e
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
    (cherry picked from commit 4830863bab3b6b67792dd8013f93d1093b9c0443)

 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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]