diff options
author | Martin Nordholts <martinn@src.gnome.org> | 2010-10-31 00:06:48 +0200 |
---|---|---|
committer | Tristan Van Berkom <tristan.van.berkom@gmail.com> | 2010-11-02 12:04:34 +0900 |
commit | 0feb08a4bbfb09dc514e00d4a6aae0c5cb0c34da (patch) | |
tree | 9e0aa989816504c53f39f233897c6d1a35f87975 /gtk/gtktestutils.c | |
parent | e94a17777470ac47ad76416906426118b6cc483e (diff) | |
download | gtk+-0feb08a4bbfb09dc514e00d4a6aae0c5cb0c34da.tar.gz |
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.
Diffstat (limited to 'gtk/gtktestutils.c')
-rw-r--r-- | gtk/gtktestutils.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 */ } |