forked from AuroraMiddleware/gtk
Handle NULL gracefully. (#314523, Ed Catmur)
2005-08-25 Matthias Clasen <mclasen@redhat.com> * gtk/gtktoolbar.c (_gtk_toolbar_elide_underscores): Handle NULL gracefully. (#314523, Ed Catmur)
This commit is contained in:
parent
446ebe3a77
commit
fe4954aee8
@ -1,3 +1,8 @@
|
||||
2005-08-25 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtktoolbar.c (_gtk_toolbar_elide_underscores): Handle
|
||||
NULL gracefully. (#314523, Ed Catmur)
|
||||
|
||||
2005-08-25 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gdk/x11/gdkcursor-x11.c (gdk_x11_display_set_cursor_theme):
|
||||
|
@ -1,3 +1,8 @@
|
||||
2005-08-25 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtktoolbar.c (_gtk_toolbar_elide_underscores): Handle
|
||||
NULL gracefully. (#314523, Ed Catmur)
|
||||
|
||||
2005-08-25 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gdk/x11/gdkcursor-x11.c (gdk_x11_display_set_cursor_theme):
|
||||
|
@ -4784,6 +4784,9 @@ _gtk_toolbar_elide_underscores (const gchar *original)
|
||||
const gchar *p;
|
||||
gboolean last_underscore;
|
||||
|
||||
if (!original)
|
||||
return NULL;
|
||||
|
||||
q = result = g_malloc (strlen (original) + 1);
|
||||
last_underscore = FALSE;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user