Mercurial > audlegacy
changeset 4859:6df303facb72
on_about_window_expose(): avoid NULL-dereference
Found with LLVM static analyzer.
author | William Pitcock <nenolod@atheme.org> |
---|---|
date | Thu, 16 Apr 2009 20:22:52 -0500 |
parents | 51e2089a73f1 |
children | 4ac25c30da72 |
files | src/audlegacy/ui_about.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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);