Commit 8b26dc2c authored by Darin Adler's avatar Darin Adler

Add missing NULL check.

	* gtk/gtkfilesel.c: (open_new_dir): Add missing NULL check.
parent 8beceb38
2002-02-28 Darin Adler <darin@bentspoon.com>
* gtk/gtkfilesel.c: (open_new_dir): Add missing NULL check.
2002-03-01 Tor Lillqvist <tml@iki.fi> 2002-03-01 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkwindow-win32.h (struct _GdkWindowImplWin32): Remove * gdk/win32/gdkwindow-win32.h (struct _GdkWindowImplWin32): Remove
......
2002-02-28 Darin Adler <darin@bentspoon.com>
* gtk/gtkfilesel.c: (open_new_dir): Add missing NULL check.
2002-03-01 Tor Lillqvist <tml@iki.fi> 2002-03-01 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkwindow-win32.h (struct _GdkWindowImplWin32): Remove * gdk/win32/gdkwindow-win32.h (struct _GdkWindowImplWin32): Remove
......
2002-02-28 Darin Adler <darin@bentspoon.com>
* gtk/gtkfilesel.c: (open_new_dir): Add missing NULL check.
2002-03-01 Tor Lillqvist <tml@iki.fi> 2002-03-01 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkwindow-win32.h (struct _GdkWindowImplWin32): Remove * gdk/win32/gdkwindow-win32.h (struct _GdkWindowImplWin32): Remove
......
2002-02-28 Darin Adler <darin@bentspoon.com>
* gtk/gtkfilesel.c: (open_new_dir): Add missing NULL check.
2002-03-01 Tor Lillqvist <tml@iki.fi> 2002-03-01 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkwindow-win32.h (struct _GdkWindowImplWin32): Remove * gdk/win32/gdkwindow-win32.h (struct _GdkWindowImplWin32): Remove
......
2002-02-28 Darin Adler <darin@bentspoon.com>
* gtk/gtkfilesel.c: (open_new_dir): Add missing NULL check.
2002-03-01 Tor Lillqvist <tml@iki.fi> 2002-03-01 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkwindow-win32.h (struct _GdkWindowImplWin32): Remove * gdk/win32/gdkwindow-win32.h (struct _GdkWindowImplWin32): Remove
......
2002-02-28 Darin Adler <darin@bentspoon.com>
* gtk/gtkfilesel.c: (open_new_dir): Add missing NULL check.
2002-03-01 Tor Lillqvist <tml@iki.fi> 2002-03-01 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkwindow-win32.h (struct _GdkWindowImplWin32): Remove * gdk/win32/gdkwindow-win32.h (struct _GdkWindowImplWin32): Remove
......
2002-02-28 Darin Adler <darin@bentspoon.com>
* gtk/gtkfilesel.c: (open_new_dir): Add missing NULL check.
2002-03-01 Tor Lillqvist <tml@iki.fi> 2002-03-01 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkwindow-win32.h (struct _GdkWindowImplWin32): Remove * gdk/win32/gdkwindow-win32.h (struct _GdkWindowImplWin32): Remove
......
...@@ -2948,7 +2948,8 @@ open_new_dir (gchar *dir_name, ...@@ -2948,7 +2948,8 @@ open_new_dir (gchar *dir_name,
} }
sent->entries[n_entries].entry_name = g_filename_to_utf8 (dirent, -1, NULL, NULL, NULL); sent->entries[n_entries].entry_name = g_filename_to_utf8 (dirent, -1, NULL, NULL, NULL);
if (!g_utf8_validate (sent->entries[n_entries].entry_name, -1, NULL)) if (sent->entries[n_entries].entry_name == NULL
|| !g_utf8_validate (sent->entries[n_entries].entry_name, -1, NULL))
{ {
g_warning (_("The filename %s couldn't be converted to UTF-8. Try setting the environment variable G_BROKEN_FILENAMES."), dirent); g_warning (_("The filename %s couldn't be converted to UTF-8. Try setting the environment variable G_BROKEN_FILENAMES."), dirent);
continue; continue;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment