diff options
author | Matthias Clasen <mclasen@redhat.com> | 2015-07-17 18:38:30 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2015-07-17 19:27:30 -0400 |
commit | d184027a985f1b5fe594afdd5f6da3deea30ff0b (patch) | |
tree | 6bf4b5fdd3341edef9226595baf3495fb1792bde | |
parent | 49b2d846442d666c404981b5a8b18260d58b601d (diff) | |
download | gtk+-d184027a985f1b5fe594afdd5f6da3deea30ff0b.tar.gz |
GtkGrid: Add a few NULL checks
Coverity complained about these.
-rw-r--r-- | gtk/gtkgrid.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gtk/gtkgrid.c b/gtk/gtkgrid.c index ce4a7dca43..665381d26f 100644 --- a/gtk/gtkgrid.c +++ b/gtk/gtkgrid.c @@ -1126,8 +1126,11 @@ gtk_grid_request_sum (GtkGridRequest *request, nat -= linedata->spacing; } - *minimum = min; - *natural = nat; + if (minimum) + *minimum = min; + + if (natural) + *natural = nat; } /* Computes minimum and natural fields of lines. |