[gnome-autoar] Prevent calling g_output_stream_write with NULL stream
- From: Ting-Wei Lan <lantw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-autoar] Prevent calling g_output_stream_write with NULL stream
- Date: Wed, 11 Sep 2013 17:14:29 +0000 (UTC)
commit e131748ff7a62f6e82b7402452450019642538ec
Author: Ting-Wei Lan <lantw44 gmail com>
Date: Thu Sep 12 01:13:01 2013 +0800
Prevent calling g_output_stream_write with NULL stream
gnome-autoar/autoar-create.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gnome-autoar/autoar-create.c b/gnome-autoar/autoar-create.c
index 4b35b09..f5a16a8 100644
--- a/gnome-autoar/autoar-create.c
+++ b/gnome-autoar/autoar-create.c
@@ -473,7 +473,7 @@ libarchive_write_write_cb (struct archive *ar_write,
g_debug ("libarchive_write_write_cb: called");
arcreate = (AutoarCreate*)client_data;
- if (arcreate->priv->error != NULL) {
+ if (arcreate->priv->error != NULL || arcreate->priv->ostream == NULL) {
return -1;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]