Trivial doc comment formatting fix
[platform/upstream/glib.git] / gio / gmemoryinputstream.c
index f058d9d..a4feb99 100644 (file)
@@ -217,8 +217,9 @@ g_memory_input_stream_new_from_data (const void     *data,
  * @bytes: a #GBytes
  *
  * Creates a new #GMemoryInputStream with data from the given @bytes.
- * 
+ *
  * Returns: new #GInputStream read from @bytes
+ *
  * Since: 2.34
  **/
 GInputStream *
@@ -379,10 +380,14 @@ g_memory_input_stream_skip_async (GInputStream        *stream,
 {
   GTask *task;
   gssize nskipped;
+  GError *error = NULL;
 
-  nskipped = g_input_stream_skip (stream, count, cancellable, NULL);
+  nskipped = G_INPUT_STREAM_GET_CLASS (stream)->skip (stream, count, cancellable, &error);
   task = g_task_new (stream, cancellable, callback, user_data);
-  g_task_return_int (task, nskipped);
+  if (error)
+    g_task_return_error (task, error);
+  else
+    g_task_return_int (task, nskipped);
   g_object_unref (task);
 }