# HG changeset patch # User William Pitcock # Date 1239931372 18000 # Node ID 6df303facb72eac0c57a66467a2c6f6e55f8bc7d # Parent 51e2089a73f1644d5f1fa2ff76f3bd58b291f169 on_about_window_expose(): avoid NULL-dereference Found with LLVM static analyzer. diff -r 51e2089a73f1 -r 6df303facb72 src/audlegacy/ui_about.c --- a/src/audlegacy/ui_about.c Thu Apr 16 20:14:28 2009 -0500 +++ b/src/audlegacy/ui_about.c Thu Apr 16 20:22:52 2009 -0500 @@ -49,6 +49,7 @@ static gboolean on_about_window_expose(GtkWidget *widget, GdkEventExpose *expose, gpointer data) { + g_return_val_if_fail(widget != NULL, FALSE); g_return_val_if_fail(GTK_IS_WIDGET (widget), FALSE); gdk_window_set_back_pixmap(GDK_WINDOW(widget->window), mask_pixmap_window2, 0);