Browse Source

lib/vfs/interface.c: Added checking if super->path_element is not NULL

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Slava Zanko 13 years ago
parent
commit
5c6ae102f2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/vfs/interface.c

+ 1 - 1
lib/vfs/interface.c

@@ -711,7 +711,7 @@ mc_chdir (const vfs_path_t * vpath)
         }
 
         super = vfs_get_super_by_vpath (vpath);
-        if (super != NULL)
+        if (super != NULL && super->path_element != NULL)
         {
             g_free (super->path_element->path);
             super->path_element->path = g_strdup (path_element->path);