mirror of
https://github.com/flatpak/flatpak.git
synced 2026-05-04 05:56:28 -04:00
Merge pull request #3274 from matthiasclasen/nread-overflow
Fix a case of signed/unsigned confusion
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user