Ticket #2039: check returned value of g_path_get_basename().

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Vit Rosin 2010-06-21 21:32:51 +04:00 committed by Andrew Borodin
parent ec7b039588
commit 76810bbf8b
1 changed files with 2 additions and 0 deletions

View File

@ -81,6 +81,8 @@ mc_skin_ini_file_load (mc_skin_t * mc_skin)
char *file_name, *user_home_dir;
file_name = g_path_get_basename (mc_skin->name);
if (file_name == NULL)
return FALSE;
if (strcmp (file_name, mc_skin->name) != 0) {
g_free (file_name);