g_path_skip_root() can return NULL; handle this. Fixes #129565.

2004-01-06  Federico Mena Quintero  <federico@ximian.com>

	* gtk/gtkfilesystemunix.c (filename_is_root): g_path_skip_root()
	can return NULL; handle this.  Fixes #129565.
This commit is contained in:
Federico Mena Quintero 2004-01-06 20:20:43 +00:00 committed by Federico Mena Quintero
parent caebaf94cb
commit 24b50606f9
6 changed files with 60 additions and 35 deletions

View File

@ -1,3 +1,8 @@
2004-01-06 Federico Mena Quintero <federico@ximian.com>
* gtk/gtkfilesystemunix.c (filename_is_root): g_path_skip_root()
can return NULL; handle this. Fixes #129565.
2004-01-06 Alexander Winston <alexander.winston@comcast.net>
* gtk/gtkfilesel.c: (gtk_file_selection_delete_file): Removed space

View File

@ -1,3 +1,8 @@
2004-01-06 Federico Mena Quintero <federico@ximian.com>
* gtk/gtkfilesystemunix.c (filename_is_root): g_path_skip_root()
can return NULL; handle this. Fixes #129565.
2004-01-06 Alexander Winston <alexander.winston@comcast.net>
* gtk/gtkfilesel.c: (gtk_file_selection_delete_file): Removed space

View File

@ -1,3 +1,8 @@
2004-01-06 Federico Mena Quintero <federico@ximian.com>
* gtk/gtkfilesystemunix.c (filename_is_root): g_path_skip_root()
can return NULL; handle this. Fixes #129565.
2004-01-06 Alexander Winston <alexander.winston@comcast.net>
* gtk/gtkfilesel.c: (gtk_file_selection_delete_file): Removed space

View File

@ -1,3 +1,8 @@
2004-01-06 Federico Mena Quintero <federico@ximian.com>
* gtk/gtkfilesystemunix.c (filename_is_root): g_path_skip_root()
can return NULL; handle this. Fixes #129565.
2004-01-06 Alexander Winston <alexander.winston@comcast.net>
* gtk/gtkfilesel.c: (gtk_file_selection_delete_file): Removed space

View File

@ -1,3 +1,8 @@
2004-01-06 Federico Mena Quintero <federico@ximian.com>
* gtk/gtkfilesystemunix.c (filename_is_root): g_path_skip_root()
can return NULL; handle this. Fixes #129565.
2004-01-06 Alexander Winston <alexander.winston@comcast.net>
* gtk/gtkfilesel.c: (gtk_file_selection_delete_file): Removed space

View File

@ -968,5 +968,5 @@ filename_is_root (const char *filename)
after_root = g_path_skip_root (filename);
return (*after_root == '\0');
return (after_root != NULL && *after_root == '\0');
}