mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-12 21:50:36 +01:00
g_dir_open: added g_return_val_if_fail() to prevent us from calling
2002-02-08 Michael Natterer <mitch@gimp.org> * glib/gdir.c: g_dir_open: added g_return_val_if_fail() to prevent us from calling opendir(NULL) (which simply crashes).
This commit is contained in:
parent
8db64a1a96
commit
147ca6cbc8
@ -1,3 +1,8 @@
|
||||
2002-02-08 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* glib/gdir.c: g_dir_open: added g_return_val_if_fail() to prevent
|
||||
us from calling opendir(NULL) (which simply crashes).
|
||||
|
||||
2002-02-08 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* glib/gfileutils.c (g_file_test): Extended documentation.
|
||||
|
@ -1,3 +1,8 @@
|
||||
2002-02-08 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* glib/gdir.c: g_dir_open: added g_return_val_if_fail() to prevent
|
||||
us from calling opendir(NULL) (which simply crashes).
|
||||
|
||||
2002-02-08 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* glib/gfileutils.c (g_file_test): Extended documentation.
|
||||
|
@ -1,3 +1,8 @@
|
||||
2002-02-08 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* glib/gdir.c: g_dir_open: added g_return_val_if_fail() to prevent
|
||||
us from calling opendir(NULL) (which simply crashes).
|
||||
|
||||
2002-02-08 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* glib/gfileutils.c (g_file_test): Extended documentation.
|
||||
|
@ -1,3 +1,8 @@
|
||||
2002-02-08 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* glib/gdir.c: g_dir_open: added g_return_val_if_fail() to prevent
|
||||
us from calling opendir(NULL) (which simply crashes).
|
||||
|
||||
2002-02-08 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* glib/gfileutils.c (g_file_test): Extended documentation.
|
||||
|
@ -1,3 +1,8 @@
|
||||
2002-02-08 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* glib/gdir.c: g_dir_open: added g_return_val_if_fail() to prevent
|
||||
us from calling opendir(NULL) (which simply crashes).
|
||||
|
||||
2002-02-08 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* glib/gfileutils.c (g_file_test): Extended documentation.
|
||||
|
@ -1,3 +1,8 @@
|
||||
2002-02-08 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* glib/gdir.c: g_dir_open: added g_return_val_if_fail() to prevent
|
||||
us from calling opendir(NULL) (which simply crashes).
|
||||
|
||||
2002-02-08 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* glib/gfileutils.c (g_file_test): Extended documentation.
|
||||
|
@ -1,3 +1,8 @@
|
||||
2002-02-08 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* glib/gdir.c: g_dir_open: added g_return_val_if_fail() to prevent
|
||||
us from calling opendir(NULL) (which simply crashes).
|
||||
|
||||
2002-02-08 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* glib/gfileutils.c (g_file_test): Extended documentation.
|
||||
|
@ -1,3 +1,8 @@
|
||||
2002-02-08 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* glib/gdir.c: g_dir_open: added g_return_val_if_fail() to prevent
|
||||
us from calling opendir(NULL) (which simply crashes).
|
||||
|
||||
2002-02-08 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* glib/gfileutils.c (g_file_test): Extended documentation.
|
||||
|
@ -61,7 +61,11 @@ g_dir_open (const gchar *path,
|
||||
guint flags,
|
||||
GError **error)
|
||||
{
|
||||
GDir *dir = g_new (GDir, 1);
|
||||
GDir *dir;
|
||||
|
||||
g_return_val_if_fail (path != NULL, NULL);
|
||||
|
||||
dir = g_new (GDir, 1);
|
||||
|
||||
dir->dir = opendir (path);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user