From cdda7f91515ada8cd56de95feb122829b62d53a1 Mon Sep 17 00:00:00 2001 From: Martin Nordholts Date: Sun, 31 Oct 2010 00:06:48 +0200 Subject: [PATCH] Handle NULL intp in test_increment_intp() Support passing NULL for &int to gtk_test_display_button_window() so we can use that function also when we are not interested in counting clicks. --- gtk/gtktestutils.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gtk/gtktestutils.c b/gtk/gtktestutils.c index c2306feccb..704674b3c1 100644 --- a/gtk/gtktestutils.c +++ b/gtk/gtktestutils.c @@ -544,7 +544,8 @@ try_main_quit (void) static int test_increment_intp (int *intp) { - *intp += 1; + if (intp != NULL) + *intp += 1; return 1; /* TRUE in case we're connected to event signals */ }