Merge pull request #3274 from matthiasclasen/nread-overflow

Fix a case of signed/unsigned confusion
This commit is contained in:
Matthias Clasen authored and GitHub committed 2019-12-02 07:29:29 -05:00
commit eb3eff11ae
1 file changed
+1 -1
+1 -1
View File
@@ -352,7 +352,7 @@ load_uri_read_cb (GObject *source, GAsyncResult *res, gpointer user_data)
{
LoadUriData *data = user_data;
GInputStream *stream = G_INPUT_STREAM (source);
gsize nread;
gssize nread;
nread = g_input_stream_read_finish (stream, res, &data->error);
if (nread == -1 || nread == 0)