Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/Remmina/Remmina.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiovanni Panozzo <giovanni@panozzo.it>2019-07-17 17:40:15 +0300
committerGiovanni Panozzo <giovanni@panozzo.it>2019-07-17 17:40:15 +0300
commit524ff7f2cacdd8ef2cc6c1cba46f58e14c487c9c (patch)
tree025d8e73ae62f4bb8aaefe7ae7a5a87af09d90a0 /plugins/kwallet
parent3fd6acde24934680a873ee03a1f2171fb1da9837 (diff)
Fix null pointer reference crash
Diffstat (limited to 'plugins/kwallet')
-rw-r--r--plugins/kwallet/src/kwallet_plugin_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/kwallet/src/kwallet_plugin_main.c b/plugins/kwallet/src/kwallet_plugin_main.c
index 096101560..6db206340 100644
--- a/plugins/kwallet/src/kwallet_plugin_main.c
+++ b/plugins/kwallet/src/kwallet_plugin_main.c
@@ -105,7 +105,7 @@ gboolean remmina_plugin_kwallet_init()
const gchar *envvar;
envvar = g_environ_getenv(g_get_environ(), "XDG_CURRENT_DESKTOP");
- if (strcmp(envvar, "KDE") != 0)
+ if (!envvar || strcmp(envvar, "KDE") != 0)
return FALSE;
return rp_kwallet_init();