goutputstream: Fix pre-condition

Spotted by Izak van Langevelde.

Signed-off-by: Philip Withnall <withnall@endlessm.com>

https://bugzilla.gnome.org/show_bug.cgi?id=791036
This commit is contained in:
Philip Withnall 2017-12-01 10:02:21 +00:00
parent 7f639fd5a0
commit 36f7440bb7

View File

@ -384,7 +384,7 @@ g_output_stream_vprintf (GOutputStream *stream,
gboolean success;
g_return_val_if_fail (G_IS_OUTPUT_STREAM (stream), FALSE);
g_return_val_if_fail (cancellable == NULL || G_IS_CANCELLABLE (stream), FALSE);
g_return_val_if_fail (cancellable == NULL || G_IS_CANCELLABLE (cancellable), FALSE);
g_return_val_if_fail (error == NULL || *error == NULL, FALSE);
g_return_val_if_fail (format != NULL, FALSE);