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:
parent
d69f0a2c83
commit
4830863bab
|
@ -383,7 +383,7 @@ notify_get_server_info (char **ret_name,
|
||||||
g_free (version);
|
g_free (version);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (spec_version != NULL) {
|
if (ret_spec_version != NULL) {
|
||||||
*ret_spec_version = spec_version;
|
*ret_spec_version = spec_version;
|
||||||
} else {
|
} else {
|
||||||
g_free (spec_version);
|
g_free (spec_version);
|
||||||
|
|
Loading…
Reference in New Issue