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
This commit is contained in:
Jonny Lamb 2010-07-01 20:46:04 -04:00 committed by William Jon McCann
parent d69f0a2c83
commit 4830863bab
1 changed files with 1 additions and 1 deletions

View File

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