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.
This commit is contained in:
parent
ae71cf7209
commit
cdda7f9151
@ -544,7 +544,8 @@ try_main_quit (void)
|
|||||||
static int
|
static int
|
||||||
test_increment_intp (int *intp)
|
test_increment_intp (int *intp)
|
||||||
{
|
{
|
||||||
*intp += 1;
|
if (intp != NULL)
|
||||||
|
*intp += 1;
|
||||||
return 1; /* TRUE in case we're connected to event signals */
|
return 1; /* TRUE in case we're connected to event signals */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user