[gtk+] Handle NULL intp in test_increment_intp()
- From: Martin Nordholts <martinn src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Handle NULL intp in test_increment_intp()
- Date: Sat, 30 Oct 2010 22:40:24 +0000 (UTC)
commit cdda7f91515ada8cd56de95feb122829b62d53a1
Author: Martin Nordholts <martinn src gnome org>
Date: Sun Oct 31 00:06:48 2010 +0200
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 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtktestutils.c b/gtk/gtktestutils.c
index c2306fe..704674b 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 */
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]