[anjuta/gnome-2-32] libanjuta: Replace a crash by a critical warning
- From: Johannes Schmid <jhs src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta/gnome-2-32] libanjuta: Replace a crash by a critical warning
- Date: Fri, 12 Nov 2010 13:55:41 +0000 (UTC)
commit a875ff9bd3c644df9579b7071e62babca8631cdf
Author: Sébastien Granjoux <seb sfo free fr>
Date: Mon Nov 1 19:23:42 2010 +0100
libanjuta: Replace a crash by a critical warning
libanjuta/anjuta-launcher.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/libanjuta/anjuta-launcher.c b/libanjuta/anjuta-launcher.c
index ff448f4..4496765 100644
--- a/libanjuta/anjuta-launcher.c
+++ b/libanjuta/anjuta-launcher.c
@@ -422,11 +422,12 @@ anjuta_launcher_send_stdin_eof (AnjutaLauncher *launcher)
void
anjuta_launcher_send_ptyin (AnjutaLauncher *launcher, const gchar * input_str)
{
- gsize bytes_written;
+ gsize bytes_written = 0;
GError *err = NULL;
g_return_if_fail (launcher);
g_return_if_fail (input_str);
+ g_return_if_fail (launcher->priv->pty_channel != NULL);
if (strlen (input_str) == 0)
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]