diff options
author | Monsta <[email protected]> | 2014-12-14 12:51:12 +0300 |
---|---|---|
committer | infirit <[email protected]> | 2014-12-15 14:31:27 +0100 |
commit | 7d3fbfa9e96b48e72e8f00681a6a28f83a768504 (patch) | |
tree | 693fa41c50c8134111b600d1340721ecd5db7217 /mate-session/main.c | |
parent | 9cfd52ee10956ec506d2578199cf32ae205cf274 (diff) | |
download | mate-session-manager-7d3fbfa9e96b48e72e8f00681a6a28f83a768504.tar.bz2 mate-session-manager-7d3fbfa9e96b48e72e8f00681a6a28f83a768504.tar.xz |
avoid dereferencing NULL pointer
Diffstat (limited to 'mate-session/main.c')
-rw-r--r-- | mate-session/main.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/mate-session/main.c b/mate-session/main.c index d51aaf2..385eddd 100644 --- a/mate-session/main.c +++ b/mate-session/main.c @@ -254,15 +254,16 @@ static void append_required_apps(GsmManager* manager) { g_warning("No required applications specified"); } - - for (i = 0; required_components[i]; i++) + else { + for (i = 0; required_components[i]; i++) + { char* default_provider; const char* component; if (IS_STRING_EMPTY((char*) required_components[i])) { - continue; + continue; } component = required_components[i]; @@ -290,6 +291,7 @@ static void append_required_apps(GsmManager* manager) } g_free(default_provider); + } } g_debug("main: *** Done adding required apps"); |