GtkGrid: Add a few NULL checks

Coverity complained about these.
This commit is contained in:
Matthias Clasen
2015-07-17 18:38:30 -04:00
parent 5557dd8fce
commit 2f817322fd

View File

@@ -1127,8 +1127,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.